Lower connection limit in listener_free, and nowhere else
authorAlan T. DeKok <aland@freeradius.org>
Thu, 8 May 2014 20:33:21 +0000 (16:33 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 May 2014 20:33:21 +0000 (16:33 -0400)
src/main/tls_listen.c

index dcda9bf..6b56def 100644 (file)
@@ -77,18 +77,6 @@ static void tls_socket_close(rad_listen_t *listener)
        listener->status = RAD_LISTEN_STATUS_EOL;
        listener->tls = NULL; /* parent owns this! */
 
-       if (sock->parent) {
-               /*
-                *      Decrement the number of connections.
-                */
-               if (sock->parent->limit.num_connections > 0) {
-                       sock->parent->limit.num_connections--;
-               }
-               if (sock->client->limit.num_connections > 0) {
-                       sock->client->limit.num_connections--;
-               }
-       }
-
        /*
         *      Tell the event handler that an FD has disappeared.
         */