aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-02-08 11:20:54 +0100
committerGitHub <noreply@github.com>2020-02-08 11:20:54 +0100
commit33d761a55a0b259ae604d9c8ee528bf51e22d143 (patch)
tree6a95aee7060539ed8dc4cd4990aa7c66571a581c /src/lib/protocols
parent2bd89be3e2ce52afcf105cdde2b0624f758ad638 (diff)
parent418ea234ae31ed9e9d9c60994d0c99022fc38a54 (diff)
Merge pull request #838 from catenacyber/fix2
Adds missing checks
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/telnet.c2
1 files changed, 2 insertions, 0 deletions
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);