GH1555: Don't bump size on realloc failure
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
4588cb4443
commit
6fcace45bd
1 changed files with 1 additions and 1 deletions
|
@ -213,8 +213,8 @@ static int expand(OPENSSL_LHASH *lh)
|
|||
j = (int)lh->num_alloc_nodes * 2;
|
||||
n = OPENSSL_realloc(lh->b, (int)(sizeof(OPENSSL_LH_NODE *) * j));
|
||||
if (n == NULL) {
|
||||
/* fputs("realloc error in lhash",stderr); */
|
||||
lh->error++;
|
||||
lh->num_nodes--;
|
||||
lh->p = 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue