From: Alan T. DeKok Date: Tue, 13 Dec 2022 15:06:29 +0000 (-0500) Subject: allocate real message only if we are sending a reply X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5695b49cba8da57f2e89d787502b0eb32da11d8f;p=thirdparty%2Ffreeradius-server.git allocate real message only if we are sending a reply --- diff --git a/src/lib/io/worker.c b/src/lib/io/worker.c index 2ec32b7c7d5..307d6c3b273 100644 --- a/src/lib/io/worker.c +++ b/src/lib/io/worker.c @@ -538,7 +538,7 @@ static void worker_send_reply(fr_worker_t *worker, request_t *request, bool send /* * Encode it, if required. */ - if (size) { + if (send_reply) { ssize_t slen = 0; fr_listen_t const *listen = request->async->listen;