If we have no response, don't send one on client retransmit
authorAlan T. DeKok <aland@freeradius.org>
Fri, 13 Mar 2009 08:26:36 +0000 (09:26 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 13 Mar 2009 08:26:36 +0000 (09:26 +0100)
src/main/event.c

index 0a233c1..365b4ad 100644 (file)
@@ -2537,6 +2537,14 @@ static void received_retransmit(REQUEST *request, const RADCLIENT *client)
 
        case REQUEST_CLEANUP_DELAY:
        case REQUEST_DONE:
+               if (request->reply->code == 0) {
+                       RDEBUG2("Ignoring retransmit from client %s port %d "
+                               "- ID: %d, no reply was configured",
+                               client->shortname,
+                               request->packet->src_port, request->packet->id);
+                       return;
+               }
+
                /*
                 *      FIXME: This sends duplicate replies to
                 *      accounting requests, even if Acct-Delay-Time