diff options
author | emanuele-f <faranda@ntop.org> | 2019-12-04 13:06:05 +0100 |
---|---|---|
committer | emanuele-f <faranda@ntop.org> | 2019-12-04 13:06:05 +0100 |
commit | d62526f9ed0d504c928a3861b4838f7029bc0632 (patch) | |
tree | 7326cf5478a6e6dc78f2ac0e15d83f1ed8c8e2c7 /src/lib/protocols/ssh.c | |
parent | e66d7216b8de3aa479db82486dcf64a63d8353ff (diff) |
Fix invalid reads and add valgrind test
Diffstat (limited to 'src/lib/protocols/ssh.c')
-rw-r--r-- | src/lib/protocols/ssh.c | 2 |
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; |