]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allocate memory in our object bound context
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Jul 2018 18:51:48 +0000 (14:51 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Jul 2018 18:54:00 +0000 (14:54 -0400)
src/lib/tls/base.c

index f14a0b19d95275cb9a8c2d75ff5cf9ab608ee1bb..e07dfe4789aa51b192858a2660393ada7fc06cd6 100644 (file)
@@ -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