aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-11-08 15:30:16 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-11-08 15:30:16 +0100
commit48caa91d3fce3f1e69627d991e11acec5bc8500d (patch)
tree32aae327c05f3a88ee24dd25a1da27b861d7ff56
parent89a363aff68b80f81e8f244a5292cdc5de4d5ec0 (diff)
Improved SSH protocol detection.improved/ssh
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-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 853ec1952..4b4813a74 100644
--- a/src/lib/protocols/ssh.c
+++ b/src/lib/protocols/ssh.c
@@ -407,7 +407,7 @@ static void ndpi_search_ssh_tcp(struct ndpi_detection_module_struct *ndpi_struct
#endif
if(flow->l4.tcp.ssh_stage == 0) {
- if(packet->payload_packet_len > 7 && packet->payload_packet_len < 100
+ if(packet->payload_packet_len > 7
&& memcmp(packet->payload, "SSH-", 4) == 0) {
int len = ndpi_min(sizeof(flow->protos.ssh.client_signature)-1, packet->payload_packet_len);