]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove it from the thread queue, too
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Oct 2017 15:43:20 +0000 (11:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Oct 2017 15:43:20 +0000 (11:43 -0400)
src/modules/rlm_radius/rlm_radius_udp.c

index 7b35881e29687ee04fc7bc179b6548c1228a24cc..5f1acd0d71e804efd45739b8977db7e99d66a0e4 100644 (file)
@@ -449,6 +449,8 @@ static void mod_finished_request(rlm_radius_udp_connection_t *c, rlm_radius_udp_
                rad_assert(c->num_requests > 0);
                c->num_requests--;
                conn_idle(c);
+       } else {
+               (void) fr_heap_extract(u->thread->queued, u);
        }
 
        u->rr = NULL;
@@ -619,12 +621,6 @@ redo:
         */
        gettimeofday(&c->last_reply, NULL);
 
-       /*
-        *      Stop all retransmissions for this packet.
-        */
-       if (u->timer.ev) (void) fr_event_timer_delete(c->thread->el, &u->timer.ev);
-       (void) fr_heap_extract(c->queued, u);
-
        switch (c->state) {
        default:
                rad_assert(0 == 1);