From: Arran Cudbard-Bell Date: Tue, 9 Mar 2021 00:24:56 +0000 (+0000) Subject: Set udp_result_t treq to NULL when the treq has been released X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e961d366b2514925a7842bcb3b68dfaade2fe95;p=thirdparty%2Ffreeradius-server.git Set udp_result_t treq to NULL when the treq has been released --- diff --git a/src/modules/rlm_radius/rlm_radius_udp.c b/src/modules/rlm_radius/rlm_radius_udp.c index dd49c1c82cb..738d8ed2140 100644 --- a/src/modules/rlm_radius/rlm_radius_udp.c +++ b/src/modules/rlm_radius/rlm_radius_udp.c @@ -2633,7 +2633,8 @@ static void mod_signal(module_ctx_t const *mctx, UNUSED request_t *request, */ case FR_SIGNAL_CANCEL: fr_trunk_request_signal_cancel(r->treq); - talloc_free(rctx); /* Should be freed soon anyway, but better to be explicit */ + r->treq = NULL; + talloc_free(r); /* Should be freed soon anyway, but better to be explicit */ return; /*