diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2020-03-27 11:02:04 +0100 |
---|---|---|
committer | Nardi Ivan <nardi.ivan@gmail.com> | 2020-03-27 11:09:53 +0100 |
commit | 3924257f32354324b2dbc1758f0605f2bd66950a (patch) | |
tree | 1b928b74cb0d46dfc675b4eddb4268b50405dc4c /src/lib/protocols/telnet.c | |
parent | 817aa54214a2c2a48d08afc0d1b5476802b3326d (diff) |
telnet: fix another heap-overflow error
Diffstat (limited to 'src/lib/protocols/telnet.c')
-rw-r--r-- | src/lib/protocols/telnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |