err: clear flags better when clearing errors.
authorPauli <pauli@openssl.org>
Wed, 9 Jun 2021 01:58:48 +0000 (11:58 +1000)
committerPauli <pauli@openssl.org>
Thu, 10 Jun 2021 08:11:45 +0000 (18:11 +1000)
commit5a9dbfc58ab280ec426ed013f5aed5a5660b938a
tree40ad95d2ba8f8541bbef477f00ced6a81cfbbb9e
parent5ac6d7d21b4e896fee2eca0488915faaea196448
err: clear flags better when clearing errors.

An attempt to clear an error with malloced data didn't clear the flags.
Now it clears all flags except the malloced flag.

Fixes #12530

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15667)
crypto/err/err_local.h
test/errtest.c