From: Arran Cudbard-Bell Date: Fri, 9 Apr 2021 21:22:56 +0000 (+0100) Subject: Enforce free ordering X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0fa1de1d5a14500ec42ddd3a32284e8079aab60;p=thirdparty%2Ffreeradius-server.git Enforce free ordering --- diff --git a/src/modules/rlm_cipher/rlm_cipher.c b/src/modules/rlm_cipher/rlm_cipher.c index 7f782280405..adbca70038f 100644 --- a/src/modules/rlm_cipher/rlm_cipher.c +++ b/src/modules/rlm_cipher/rlm_cipher.c @@ -464,7 +464,7 @@ static int cipher_rsa_certificate_file_load(TALLOC_CTX *ctx, void *out, UNUSED v } talloc_set_type(pkey, EVP_PKEY); - (void)talloc_steal(ctx, pkey); /* Bind lifetime to config */ + (void)talloc_steal(cert, pkey); /* Bind lifetime to config */ talloc_set_destructor(pkey, _evp_pkey_free); /* Free pkey correctly on chunk free */ rsa_inst->x509_certificate_file = cert; /* Not great, but shouldn't cause any issues */