]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move resend etc. so the loop actually finishes
authorAlan T. DeKok <aland@freeradius.org>
Thu, 11 Apr 2024 17:48:56 +0000 (13:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Apr 2024 13:17:30 +0000 (09:17 -0400)
src/bin/radclient-ng.c

index 09793cbbdbd6d3bfe0bf7bac424c839aac2689e0..2d8e39175016365e57855f6c12f5e1bb47589bea 100644 (file)
@@ -982,6 +982,9 @@ static void client_write(fr_event_list_t *el, int fd, UNUSED int flags, void *uc
 
        if (send_one_packet(client, request) < 0) fr_assert(0);
 
+       request->resend++;
+       current = request;
+
        /*
         *      0 means "don't limit requests".
         */
@@ -989,10 +992,6 @@ static void client_write(fr_event_list_t *el, int fd, UNUSED int flags, void *uc
                paused = true;
                goto pause;
        }
-
-       request->resend++;
-       current = request;
-
 }
 
 static void client_connect(fr_event_list_t *el, int fd, UNUSED int flags, void *uctx)