Make "dropped packet" message debugging
authorAlan T. DeKok <aland@freeradius.org>
Fri, 18 Dec 2009 12:52:50 +0000 (13:52 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 18 Dec 2009 12:57:52 +0000 (13:57 +0100)
This is so that we don't spam the logs wih a DoS when we get lots
of packets with a bad signature

src/main/event.c

index c2a039f..a606e76 100644 (file)
@@ -1538,8 +1538,6 @@ static int originated_coa_request(REQUEST *request)
                        ev_request_free(&request->coa);
                        return 1;       /* success */
                }
-
-               
        }
 
        if (!request->coa) request_alloc_coa(request);
@@ -1904,7 +1902,8 @@ static int request_pre_handler(REQUEST *request)
        }
 
        if (rcode < 0) {
-               radlog(L_ERR, "%s Dropping packet without response.", fr_strerror());
+               RDEBUG("%s Dropping packet without response.", fr_strerror());
+               request->reply->offset = -2; /* bad authenticator */
                request->child_state = REQUEST_DONE;
                return 0;
        }