]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
stupid compiler
authorAlan T. DeKok <aland@freeradius.org>
Thu, 29 Jun 2017 18:42:16 +0000 (14:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 29 Jun 2017 18:42:16 +0000 (14:42 -0400)
src/main/process.c

index c6a724b05a17c69e76370278353c86a7d16f69f3..412a341b9b4c1ddd86b5beb1ed37ceb55e1f5ca1 100644 (file)
@@ -2000,7 +2000,7 @@ static void remove_from_proxy_hash_nl(REQUEST *request, bool yank)
 {
        VERIFY_REQUEST(request);
 
-       if (!request->in_proxy_hash) return;
+       if (!request->in_proxy_hash || !request->proxy->listener) return;
 
        fr_packet_list_id_free(proxy_list, request->proxy->packet, yank);
        request->in_proxy_hash = false;
@@ -2046,7 +2046,6 @@ static void remove_from_proxy_hash_nl(REQUEST *request, bool yank)
        }
 
 #ifdef WITH_TCP
-       rad_assert(request->proxy->listener != NULL);
        request->proxy->listener->count--;
 #endif
        request->proxy->listener = NULL;