From: Arran Cudbard-Bell Date: Thu, 25 May 2017 17:08:41 +0000 (-0400) Subject: When we're localizing a header, copy the number of bytes in the header, not the numbe... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=526459912aea4f5e5982f75ffd5e77f9d45f5d2f;p=thirdparty%2Ffreeradius-server.git When we're localizing a header, copy the number of bytes in the header, not the number of bytes in a void * --- diff --git a/src/lib/io/worker.c b/src/lib/io/worker.c index 3c5d8f227b3..04be3efd307 100644 --- a/src/lib/io/worker.c +++ b/src/lib/io/worker.c @@ -532,7 +532,7 @@ static void fr_worker_check_timeouts(fr_worker_t *worker, fr_time_t now) * 0.01 to 1s. Localize it. */ WORKER_HEAP_EXTRACT(to_decode, cd, request.list); - lm = fr_message_localize(worker, &cd->m, sizeof(cd)); + lm = fr_message_localize(worker, &cd->m, sizeof(cd->m)); if (!lm) goto nak; WORKER_HEAP_INSERT(localized, cd, request.list);