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/ndpi_main.c | |
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/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 7f88d8b1c..6a49c22c0 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4258,6 +4258,8 @@ int ndpi_load_malicious_sha1_file(struct ndpi_detection_module_struct *ndpi_str, num++; } + fclose(fd); + return num; } |