Adds missing checks

Found by fuzzing
This commit is contained in:
Philippe Antoine
2020-02-03 22:38:31 +01:00
parent 3e99b73635
commit 418ea234ae
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -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);