From: Alan T. DeKok Date: Thu, 4 Jun 2015 14:53:28 +0000 (-0400) Subject: More errors on rad_recv_header() X-Git-Tag: release_3_0_9~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2649c09a33b9d7512b0cbc303eb47d0839cb47f6;p=thirdparty%2Ffreeradius-server.git More errors on rad_recv_header() --- diff --git a/src/main/listen.c b/src/main/listen.c index 5759639365d..eb8037fc425 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -1442,6 +1442,7 @@ static int stats_socket_recv(rad_listen_t *listener) FR_STATS_INC(auth, total_requests); if (rcode < 20) { /* RADIUS_HDR_LEN */ + ERROR("Receive - %s", fr_strerror()); FR_STATS_INC(auth, total_malformed_requests); return 0; } @@ -1511,7 +1512,7 @@ static int auth_socket_recv(rad_listen_t *listener) FR_STATS_INC(auth, total_requests); if (rcode < 20) { /* RADIUS_HDR_LEN */ - RATE_LIMIT(ERROR("Received malformed packet: %s", fr_strerror())); + ERROR("Receive - %s", fr_strerror()); FR_STATS_INC(auth, total_malformed_requests); return 0; } @@ -1626,6 +1627,7 @@ static int acct_socket_recv(rad_listen_t *listener) FR_STATS_INC(acct, total_requests); if (rcode < 20) { /* RADIUS_HDR_LEN */ + ERROR("Receive - %s", fr_strerror()); FR_STATS_INC(acct, total_malformed_requests); return 0; } @@ -1898,7 +1900,7 @@ static int coa_socket_recv(rad_listen_t *listener) if (rcode < 0) return 0; if (rcode < 20) { /* RADIUS_HDR_LEN */ - FR_STATS_INC(coa, total_requests); + ERROR("Receive - %s", fr_strerror()); FR_STATS_INC(coa, total_malformed_requests); return 0; }