]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More errors on rad_recv_header()
authorAlan T. DeKok <aland@freeradius.org>
Thu, 4 Jun 2015 14:53:28 +0000 (10:53 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 4 Jun 2015 14:53:28 +0000 (10:53 -0400)
src/main/listen.c

index 5759639365d620e59ddece417768c8d9d6c720a0..eb8037fc425e8f0700eb1bcfa60256539d46ea94 100644 (file)
@@ -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;
        }