From 3924257f32354324b2dbc1758f0605f2bd66950a Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Fri, 27 Mar 2020 11:02:04 +0100 Subject: telnet: fix another heap-overflow error --- src/lib/protocols/telnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols') diff --git a/src/lib/protocols/telnet.c b/src/lib/protocols/telnet.c index 1f34cab56..8e688eca0 100644 --- a/src/lib/protocols/telnet.c +++ b/src/lib/protocols/telnet.c @@ -49,7 +49,7 @@ static int search_telnet_again(struct ndpi_detection_module_struct *ndpi_struct, if(flow->protos.telnet.username_detected) { if((!flow->protos.telnet.password_found) - && (packet->payload_packet_len > 6)) { + && (packet->payload_packet_len > 9)) { if(strncasecmp((char*)packet->payload, "password:", 9) == 0) { flow->protos.telnet.password_found = 1; -- cgit v1.2.3