X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Flhash%2Flhash.c;h=adde832cc45c637016064aaabb00c392e2b6abe8;hb=c62ee12574e661a111238954b07ea1d5f0786bec;hp=19c6d2c31d5e0734063efaa619d3ec0ca2b4f284;hpb=152d26461609ae36f329d6f48b2d0749e43834f3;p=oweals%2Fopenssl.git diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index 19c6d2c31d..adde832cc4 100644 --- a/crypto/lhash/lhash.c +++ b/crypto/lhash/lhash.c @@ -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; }