]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't set the idle timeout if it's already set
authorAlan T. DeKok <aland@freeradius.org>
Wed, 16 Aug 2017 08:06:42 +0000 (10:06 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 16 Aug 2017 08:06:42 +0000 (10:06 +0200)
src/modules/rlm_radius/rlm_radius_udp.c

index 757023cbf7bec503d705b70b8453aa5c179611f3..44c9fff1b80634d84bfff1386fa5354d412eb06d 100644 (file)
@@ -264,6 +264,11 @@ static void conn_idle(rlm_radius_udp_connection_t *c)
 
        }
 
+       /*
+        *      We've already set an idle timeout.  Don't do it again.
+        */
+       if (c->idle_ev) return;
+
        gettimeofday(&when, NULL);
        when.tv_usec += c->inst->parent->idle_timeout.tv_usec;
        when.tv_sec += when.tv_usec / USEC;