diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-06-28 07:28:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 07:28:55 +0200 |
commit | 1010520cc46dc18972c8cb79a679d8edddda47e2 (patch) | |
tree | 42bad76cfd6a108a23c8a9c5cd4262a2adcc69c3 /src/lib/protocols/h323.c | |
parent | ff67e091010443bcdff65cc73b45bf5e579c8dbb (diff) | |
parent | fbfa54eee65b453ec33876354b9e6279120af900 (diff) |
Merge pull request #936 from lnslbrty/fix/h323-off-by-one
Fixed off-by-one error in h323.
Diffstat (limited to 'src/lib/protocols/h323.c')
-rw-r--r-- | src/lib/protocols/h323.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/h323.c b/src/lib/protocols/h323.c index 13ec9d364..1d70a8cec 100644 --- a/src/lib/protocols/h323.c +++ b/src/lib/protocols/h323.c @@ -33,7 +33,7 @@ void ndpi_search_h323(struct ndpi_detection_module_struct *ndpi_struct, struct n NDPI_LOG_DBG2(ndpi_struct, "calculated dport over tcp\n"); /* H323 */ - if(packet->payload_packet_len >= 4 + if(packet->payload_packet_len > 4 && (packet->payload[0] == 0x03) && (packet->payload[1] == 0x00)) { struct tpkt *t = (struct tpkt*)packet->payload; |