Do not check definition of a macro and use it in a single condition
authorTomas Mraz <tomas@openssl.org>
Tue, 10 Jan 2023 17:00:59 +0000 (18:00 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 12 Jan 2023 09:47:39 +0000 (10:47 +0100)
commite72a0ab363e8e6b175ab02e49d500eea0bf0998a
treebd11034d58e3d6d5d554005d2e869aa0b08a5036
parente33c37aead7e7dd5647d949db7be875c8fa8c137
Do not check definition of a macro and use it in a single condition

The condition evaluation in #if conditions does not tolerate this
if the macro is not defined.

Fixes #19628

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20018)

(cherry picked from commit a509b97d2c4efd96e231913d49544ac7cb36b51b)
crypto/mem_sec.c