diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-02-01 17:06:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 17:06:16 +0100 |
commit | 6c5ecae607e98e0bdd0ca8500d2003db3a5f9688 (patch) | |
tree | ed90548aaca3139b982f189bb0e6ba05cd6c45b5 /src | |
parent | c78ed93ec310554cb3e12161f491d34f1050204e (diff) |
Fix function parameters check on domain code (#2296)
Found while fuzzing fuzz_config
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_domains.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_domains.c b/src/lib/ndpi_domains.c index e679c3fc0..7970f3a36 100644 --- a/src/lib/ndpi_domains.c +++ b/src/lib/ndpi_domains.c @@ -31,7 +31,7 @@ int ndpi_load_domain_suffixes(struct ndpi_detection_module_struct *ndpi_str, FILE *fd; u_int num_domains = 0; - if(public_suffix_list_path == NULL) + if(ndpi_str == NULL || public_suffix_list_path == NULL) return(-1); if((fd = fopen(public_suffix_list_path, "r")) == NULL) |