diff options
Diffstat (limited to 'src/lib/ndpi_domains.c')
-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) |