diff options
author | Ivan Kapranov <44571881+koltiradw@users.noreply.github.com> | 2023-06-22 22:36:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 21:36:40 +0200 |
commit | 15f0e1480c4324afa0350fa7f1d839d2dc4fc1fa (patch) | |
tree | d6e2d14eeb3deb7f34d22e82c22108c1b24f2b5f /src/lib/protocols | |
parent | aa25c06a18244a370fc69df1bc9e5052f520c499 (diff) |
minor fixes (#2023)
fixed 'handle leak' in ndpi_load_malicious_sha1_file and removed the redundant comparison ndpi_search_eaq
Co-authored-by: Ivan Kapranov <i.kapranov@securitycode.ru>
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/eaq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/protocols/eaq.c b/src/lib/protocols/eaq.c index d01cae9d3..ff97641ec 100644 --- a/src/lib/protocols/eaq.c +++ b/src/lib/protocols/eaq.c @@ -51,7 +51,6 @@ static void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, st ((sport != EAQ_DEFAULT_PORT) && (dport != EAQ_DEFAULT_PORT)) ) break; - if(packet->udp != NULL) { u_int32_t seq = (packet->payload[0] * 1000) + (packet->payload[1] * 100) + (packet->payload[2] * 10) + packet->payload[3]; if(flow->l4.udp.eaq_pkt_id == 0) @@ -71,7 +70,7 @@ static void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, st return; } else return; - } + } while(0); NDPI_EXCLUDE_PROTO(ndpi_struct, flow); |