]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
When we're localizing a header, copy the number of bytes in the header, not the numbe...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 May 2017 17:08:41 +0000 (13:08 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 May 2017 17:08:41 +0000 (13:08 -0400)
src/lib/io/worker.c

index 3c5d8f227b395cc4117f874b518b00d778a4ab24..04be3efd307084e1c4860fa7a5b925541ac4cdf3 100644 (file)
@@ -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);