From 418ea234ae31ed9e9d9c60994d0c99022fc38a54 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 3 Feb 2020 22:38:31 +0100 Subject: Adds missing checks Found by fuzzing --- src/lib/protocols/telnet.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/protocols') diff --git a/src/lib/protocols/telnet.c b/src/lib/protocols/telnet.c index 0848ef467..dfccd904e 100644 --- a/src/lib/protocols/telnet.c +++ b/src/lib/protocols/telnet.c @@ -41,6 +41,8 @@ static int search_telnet_again(struct ndpi_detection_module_struct *ndpi_struct, printf("==> %s() [%s][direction: %u]\n", __FUNCTION__, packet->payload, packet->packet_direction); #endif + if (packet->payload == NULL) + return(1); if(packet->payload[0] == 0xFF) return(1); -- cgit v1.2.3