From: Arran Cudbard-Bell Date: Wed, 18 Jul 2018 18:51:48 +0000 (-0400) Subject: Allocate memory in our object bound context X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=971b535e70f3ffb08eeea2fd7c5e72e200e14dea;p=thirdparty%2Ffreeradius-server.git Allocate memory in our object bound context --- diff --git a/src/lib/tls/base.c b/src/lib/tls/base.c index f14a0b19d95..e07dfe4789a 100644 --- a/src/lib/tls/base.c +++ b/src/lib/tls/base.c @@ -416,7 +416,7 @@ static void *openssl_talloc(size_t len, UNUSED char const *file, UNUSED int line static void *openssl_talloc(size_t len) #endif { - return talloc_array(NULL, uint8_t, len); + return talloc_array(ssl_talloc_ctx, uint8_t, len); } /** Reallocate memory for OpenSSL in the NULL context @@ -431,7 +431,7 @@ static void *openssl_realloc(void *old, size_t len, UNUSED char const *file, UNU static void *openssl_realloc(void *old, size_t len) #endif { - return talloc_realloc_size(NULL, old, len); + return talloc_realloc_size(ssl_talloc_ctx, old, len); } /** Free memory allocated by OpenSSL