From: Alan T. DeKok Date: Fri, 18 Dec 2009 12:52:50 +0000 (+0100) Subject: Make "dropped packet" message debugging X-Git-Tag: release_2_1_8~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da0f2ca4c2e7b6a03a65587c8cee04b52294ba6a;p=thirdparty%2Ffreeradius-server.git Make "dropped packet" message debugging This is so that we don't spam the logs wih a DoS when we get lots of packets with a bad signature --- diff --git a/src/main/event.c b/src/main/event.c index 6ec0308d568..f78621e59b2 100644 --- a/src/main/event.c +++ b/src/main/event.c @@ -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; }