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 13:09:02 +0000 (14:09 +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 6ec0308..f78621e 100644 (file)
@@ -1445,8 +1445,6 @@ static int originated_coa_request(REQUEST *request)
                        ev_request_free(&request->coa);
                        return 1;       /* success */
                }
-
-               
        }
 
        if (!request->coa) request_alloc_coa(request);
@@ -1805,7 +1803,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;
        }