diff options
author | Luca <deri@ntop.org> | 2020-02-10 15:04:37 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2020-02-10 15:04:37 +0100 |
commit | af6c86de2838a556997451ffd8e5c761b8b634f2 (patch) | |
tree | 89aeda8b4e775cbb0fa136a50985068d373357b0 /src/lib/protocols/telnet.c | |
parent | 452ba1f339ae112492b75b0c53f5c2dd98ab92d2 (diff) | |
parent | 34984f1aec0eebdbee47408480c4f4cdb57cf0b3 (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/protocols/telnet.c')
-rw-r--r-- | src/lib/protocols/telnet.c | 2 |
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); |