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:46:52 +0000 (10:46 +0100)
commita509b97d2c4efd96e231913d49544ac7cb36b51b
tree80c9077ccfe0000444d580e38ad93a160c35a0d4
parentc455f87aebf245814ba58d6a398b45ca4e80d1d7
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)
crypto/mem_sec.c