Commit ceb7342d authored by Rich Salz's avatar Rich Salz
Browse files

GH1555: Don't bump size on realloc failure



Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(cherry picked from commit 6fcace45)
parent 9583e416
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -335,8 +335,8 @@ static void expand(_LHASH *lh)
        n = (LHASH_NODE **)OPENSSL_realloc(lh->b,
                                           (int)(sizeof(LHASH_NODE *) * j));
        if (n == NULL) {
/*                      fputs("realloc error in lhash",stderr); */
            lh->error++;
            lh->num_nodes--;
            lh->p = 0;
            return;
        }