]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
loop over s->waiting, even if there is not a pending packet
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jul 2020 00:10:29 +0000 (20:10 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jul 2020 00:10:29 +0000 (20:10 -0400)
src/lib/io/network.c

index bc27061bdafb75035025c3ef3a11998d792f74e2..ac96339eda4291af8f2429180b4f890ed3bfea29 100644 (file)
@@ -896,7 +896,7 @@ static void fr_network_write(UNUSED fr_event_list_t *el, UNUSED int sockfd, UNUS
         *      Start with the currently pending message, and then
         *      work through the priority heap.
         */
-       for (cd = s->pending;
+       for ((cd = s->pending) || (cd = fr_heap_pop(s->waiting));
             cd != NULL;
             cd = fr_heap_pop(s->waiting)) {
                int rcode;