From: Eugene Syromiatnikov Date: Fri, 25 Jul 2025 01:46:36 +0000 (+0200) Subject: crypto/mem.c: tfix in CRYPTO_aligned_alloc X-Git-Tag: openssl-3.6.0-alpha1~216 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35a3958dc6cdc404dd8af7f73ae755ea488e7a4c;p=thirdparty%2Fopenssl.git crypto/mem.c: tfix in CRYPTO_aligned_alloc * crypto/mem.c [OPENSSL_SMALL_FOOTPRINT] (CRYPTO_aligned_alloc): Change freeptr to *freeptr to properly update the variable passed by pointer. Signed-off-by: Eugene Syromiatnikov Reviewed-by: Saša Nedvědický Reviewed-by: Matt Caswell Reviewed-by: Paul Dale Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/28059) --- diff --git a/crypto/mem.c b/crypto/mem.c index 48da037af31..c0dffbfdad6 100644 --- a/crypto/mem.c +++ b/crypto/mem.c @@ -236,7 +236,7 @@ void *CRYPTO_aligned_alloc(size_t num, size_t alignment, void **freeptr, *freeptr = NULL; #if defined(OPENSSL_SMALL_FOOTPRINT) - ret = freeptr = NULL; + ret = *freeptr = NULL; return ret; #endif