diff options
author | ysk <shaokunyang@163.com> | 2020-07-16 16:07:04 +0800 |
---|---|---|
committer | ysk <shaokunyang@163.com> | 2020-07-16 16:07:04 +0800 |
commit | 69ca98ca3557005e36a0411ec526b464d88039bf (patch) | |
tree | a451ae3eaf84cae3ca42254657c57af95e3e287f /src/lib/protocols | |
parent | 46e97d5da394aed103b6e41336699c7209fb03b0 (diff) |
1:add free pointer NULL check;2:fix xbox and teredo protocol detected error when use the commm udp port 3544
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/xbox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/protocols/xbox.c b/src/lib/protocols/xbox.c index 4c26e1f75..2b5b8500c 100644 --- a/src/lib/protocols/xbox.c +++ b/src/lib/protocols/xbox.c @@ -85,6 +85,12 @@ void ndpi_search_xbox(struct ndpi_detection_module_struct *ndpi_struct, struct n ndpi_int_xbox_add_connection(ndpi_struct, flow); NDPI_LOG_INFO(ndpi_struct, "found xbox udp port connection detected\n"); return; + }else if(dport == 3544 || sport == 3544) + { + ndpi_int_xbox_add_connection(ndpi_struct, flow); + NDPI_LOG_INFO(ndpi_struct, "found xbox udp port connection detected\n"); + NDPI_LOG_DBG(ndpi_struct, "%s %d \n", __FUNCTION__, __LINE__); + return; } /* exclude here all non matched udp traffic, exclude here tcp only if http has been excluded, because xbox could use http */ |