From 7286fe17eae11b34d66fac2f05688b9c5feb5c9b Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Thu, 6 Mar 2025 16:14:04 +0000 Subject: [PATCH] If we're not saving the packet, clear u->packet So bio_request_reset doesn't attempt to free it. --- src/modules/rlm_radius/bio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/rlm_radius/bio.c b/src/modules/rlm_radius/bio.c index 3b277c379f..1221ca61da 100644 --- a/src/modules/rlm_radius/bio.c +++ b/src/modules/rlm_radius/bio.c @@ -1715,7 +1715,10 @@ do_write: /* * If we only send one datagram packet, then don't bother saving it. */ - if (u->retry.config && u->retry.config->mrc == 1) return; + if (u->retry.config && u->retry.config->mrc == 1) { + u->packet = NULL; + return; + } MEM(u->packet = talloc_memdup(u, u->packet, u->packet_len)); } -- 2.47.2