]> git.ipfire.org Git - thirdparty/openssl.git/commit
OPENSSL_LH_flush(): assign NULL after freeing
authorRichard Levitte <levitte@openssl.org>
Thu, 18 Apr 2019 14:33:21 +0000 (16:33 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 19 Apr 2019 08:24:16 +0000 (10:24 +0200)
commitbcb5d42171386709c716312b711a0c15aa368f3f
tree2390f4df3acce18d58038ee4503af15bf78362f8
parente019da7b6ff54822e307daf804f7fe78ec352457
OPENSSL_LH_flush(): assign NULL after freeing

OPENSSL_LH_flush() frees the linked lists for each slot, but didn't
set the list head to NULL after doing so, with the result that an
operation that affects these lists is likely to cause a crash.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8781)
crypto/lhash/lhash.c