RT4313: Fix build for !IMPLEMENTED code path in CRYPTO_secure_free()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 17 Feb 2016 13:41:26 +0000 (13:41 +0000)
committerRich Salz <rsalz@openssl.org>
Wed, 17 Feb 2016 14:16:01 +0000 (09:16 -0500)
Commit 05c7b1631 ("Implement the use of heap manipulator implementions")
added 'file' and 'line' arguments to CRYPTO_free() and friends, but neglected
to fix up the !IMPLEMENTED case within CRYPTO_secure_free(). Add the missing
arguments there too.

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/mem_sec.c

index be3bb9a62b25da7c6ccea110a7e9d872afda2ede..fdda487efca82e8a173a36328332b32d76750e2e 100644 (file)
@@ -138,7 +138,7 @@ void CRYPTO_secure_free(void *ptr, const char *file, int line)
     sh_free(ptr);
     UNLOCK();
 #else
-    CRYPTO_free(ptr);
+    CRYPTO_free(ptr, file, line);
 #endif /* IMPLEMENTED */
 }