diff options
Diffstat (limited to 'src/lib/ndpi_domain_classify.c')
-rw-r--r-- | src/lib/ndpi_domain_classify.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/ndpi_domain_classify.c b/src/lib/ndpi_domain_classify.c index c23ffed8b..5b9457006 100644 --- a/src/lib/ndpi_domain_classify.c +++ b/src/lib/ndpi_domain_classify.c @@ -1,7 +1,7 @@ /* * ndpi_domain_classify.c * - * Copyright (C) 2011-24 - ntop.org and contributors + * Copyright (C) 2011-25 - ntop.org and contributors * * nDPI is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -150,7 +150,6 @@ bool ndpi_domain_classify_hostname(struct ndpi_detection_module_struct *ndpi_mod ndpi_domain_classify *s, u_int16_t *class_id /* out */, char *hostname) { - u_int32_t len; const char *dot; char *item; @@ -159,7 +158,7 @@ bool ndpi_domain_classify_hostname(struct ndpi_detection_module_struct *ndpi_mod *class_id = 0; /* Unknown class_id */ if(!hostname || !s) return(false); - if((len = strlen(hostname)) == 0) return(false); + if(strlen(hostname) == 0) return(false); if((dot = strrchr(hostname, '.')) == NULL) return(false); if((!strcmp(dot, ".arpa")) || (!strcmp(dot, ".local"))) return(false); |