diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-03-31 17:51:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 17:51:20 +0200 |
commit | 56ca71bda9870e78ba0ee70fe226c4a4fcc36a04 (patch) | |
tree | a523d39c9ee5faa35067fc8a4122ba2b6f51883c /src/lib/protocols/h323.c | |
parent | 17d531e3db61326f286c7d0d543f4ea5b00bc796 (diff) | |
parent | 498571354d2c22c192bb80bc79058b70d455b363 (diff) |
Merge pull request #863 from IvanNardi/memory-errors
Memory errors
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 d407c981b..70e5a33c0 100644 --- a/src/lib/protocols/h323.c +++ b/src/lib/protocols/h323.c @@ -29,7 +29,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 >= 3 + if(packet->payload_packet_len >= 4 && (packet->payload[0] == 0x03) && (packet->payload[1] == 0x00)) { struct tpkt *t = (struct tpkt*)packet->payload; |