aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichele Campus <fci1908@gmail.com>2018-05-04 18:49:56 +0200
committerGitHub <noreply@github.com>2018-05-04 18:49:56 +0200
commit979330392e9d15302cb14018e69f728161fb7932 (patch)
tree28b6abffe36c9621363696b79667c92a88693e11 /src
parent78176d2b7b082af39ba1bb6c7a23bfb62a842a84 (diff)
parent11898f02683308aedaee0bf07959f852aeb702de (diff)
Merge pull request #558 from gozzy/dev
SSH: increase client's maximum payload length from 100 to 500
Diffstat (limited to 'src')
-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 bfd1c387e..0045fe69e 100644
--- a/src/lib/protocols/ssh.c
+++ b/src/lib/protocols/ssh.c
@@ -63,7 +63,7 @@ void ndpi_search_ssh_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc
return;
}
} else if (flow->l4.tcp.ssh_stage == (2 - packet->packet_direction)) {
- if (packet->payload_packet_len > 7 && packet->payload_packet_len < 100
+ if (packet->payload_packet_len > 7 && packet->payload_packet_len < 500
&& memcmp(packet->payload, "SSH-", 4) == 0) {
int len = ndpi_min(sizeof(flow->protos.ssh.server_signature)-1, packet->payload_packet_len);
strncpy(flow->protos.ssh.server_signature, (const char *)packet->payload, len);