Fix error handling in lhash contract
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 20 Sep 2023 13:45:56 +0000 (15:45 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 21 Sep 2023 12:50:01 +0000 (14:50 +0200)
commit5fbfd641aeebdf4b29a0749e13a79a1e59502878
tree2a1cb15afc0039b2142562895ee7d350b2f0694e
parentd4f22a915ac50570015a23ad794032c4fb9496cb
Fix error handling in lhash contract

When the realloc fails in contract, this not a fatal
error, since the memory is only shrinked. It is also no
option to exit the function at this point, since that
would leave the hash table in an inconsistent state.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22154)
crypto/lhash/lhash.c