Skip to content

Commit

Permalink
Write MA not present to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
grk-it committed Nov 8, 2024
1 parent 456d908 commit ba2b1f4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/radius.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ RCSID("$Id$")
* Some messages get printed out only in debugging mode.
*/
#define FR_DEBUG_STRERROR_PRINTF if (fr_debug_lvl) fr_strerror_printf

#if 0
#define VP_TRACE printf

Expand Down Expand Up @@ -2813,10 +2812,8 @@ bool rad_packet_ok(RADIUS_PACKET *packet, int flags, decode_fail_t *reason)
!packet->radiusv11 &&
#endif
!seen_ma) {
FR_DEBUG_STRERROR_PRINTF("Insecure packet from host %s: Packet does not contain required Message-Authenticator attribute",
inet_ntop(packet->src_ipaddr.af,
&packet->src_ipaddr.ipaddr,
host_ipaddr, sizeof(host_ipaddr)));
printf("Insecure packet from host %s: Packet does not contain required Message-Authenticator attribute\n", inet_ntop(packet->src_ipaddr.af, &packet->src_ipaddr.ipaddr, host_ipaddr, sizeof(host_ipaddr)));
fflush(stdout);
failure = DECODE_FAIL_MA_MISSING;
goto finish;
}
Expand Down

0 comments on commit ba2b1f4

Please sign in to comment.