aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/ssh.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-12-08 23:47:25 +0100
committerLuca Deri <deri@ntop.org>2019-12-08 23:47:25 +0100
commit11401edfe7c4c9f9728c64172a48c2ea4401c750 (patch)
treed4b97ba508c1248d8555a86cd86462cfaea11902 /src/lib/protocols/ssh.c
parent239842b821763a2afc62d859a186f673ba09b171 (diff)
parentd37b69ce9c9caa979de7c511e33cb7d1cf5fbc91 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/protocols/ssh.c')
-rw-r--r--src/lib/protocols/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/ssh.c b/src/lib/protocols/ssh.c
index 5bdf78959..068d2c345 100644
--- a/src/lib/protocols/ssh.c
+++ b/src/lib/protocols/ssh.c
@@ -296,7 +296,7 @@ static void ndpi_search_ssh_tcp(struct ndpi_detection_module_struct *ndpi_struct
flow->l4.tcp.ssh_stage = 3;
return;
}
- } else {
+ } else if(packet->payload_packet_len > 5) {
u_int8_t msgcode = *(packet->payload + 5);
ndpi_MD5_CTX ctx;