From 1d492c9ed843a7372692b6a4c946d794ecb8b8b6 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sun, 5 Jun 2022 14:45:21 +0200 Subject: Fix some debug messages (#1583) Increase max number of flows handled during fuzzing --- src/lib/protocols/kerberos.c | 2 +- src/lib/protocols/telnet.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/protocols') diff --git a/src/lib/protocols/kerberos.c b/src/lib/protocols/kerberos.c index 9c166128f..9d2969e51 100644 --- a/src/lib/protocols/kerberos.c +++ b/src/lib/protocols/kerberos.c @@ -671,7 +671,7 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct, if (krb_parse(ndpi_struct, flow, 8) != 0) { - NDPI_LOG_ERR(ndpi_struct, "[TGS-REP] Invalid packet received\n"); + NDPI_LOG_DBG(ndpi_struct, "[TGS-REP] Invalid packet received\n"); return; } NDPI_LOG_DBG(ndpi_struct, diff --git a/src/lib/protocols/telnet.c b/src/lib/protocols/telnet.c index 45ab36d0b..43badd08c 100644 --- a/src/lib/protocols/telnet.c +++ b/src/lib/protocols/telnet.c @@ -39,7 +39,8 @@ static int search_telnet_again(struct ndpi_detection_module_struct *ndpi_struct, int i; #ifdef TELNET_DEBUG - printf("==> %s() [%s][direction: %u]\n", __FUNCTION__, packet->payload, packet->packet_direction); + printf("==> %s() [%.*s][direction: %u]\n", __FUNCTION__, packet->payload_packet_len, + packet->payload, packet->packet_direction); #endif if((packet->payload == NULL) -- cgit v1.2.3