Fix function parameters check on domain code (#2296)

Found while fuzzing fuzz_config
This commit is contained in:
Ivan Nardi
2024-02-01 17:06:16 +01:00
committed by GitHub
parent c78ed93ec3
commit 6c5ecae607
+1 -1
View File
@@ -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)