From: Alan T. DeKok Date: Tue, 21 Jul 2020 00:10:29 +0000 (-0400) Subject: loop over s->waiting, even if there is not a pending packet X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad77f6e7dcf43efc7dcedfe77bd8c60837485fa8;p=thirdparty%2Ffreeradius-server.git loop over s->waiting, even if there is not a pending packet --- diff --git a/src/lib/io/network.c b/src/lib/io/network.c index bc27061bdaf..ac96339eda4 100644 --- a/src/lib/io/network.c +++ b/src/lib/io/network.c @@ -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;