From: Nick Porter Date: Thu, 6 Mar 2025 16:14:04 +0000 (+0000) Subject: If we're not saving the packet, clear u->packet X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7286fe17eae11b34d66fac2f05688b9c5feb5c9b;p=thirdparty%2Ffreeradius-server.git If we're not saving the packet, clear u->packet So bio_request_reset doesn't attempt to free it. --- 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)); }