Fixed issue on DGA numeric IP detection
This commit is contained in:
+2
-3
@@ -7517,10 +7517,9 @@ int ndpi_check_dga_name(struct ndpi_detection_module_struct *ndpi_str,
|
|||||||
|
|
||||||
if(isdigit(name[0])) {
|
if(isdigit(name[0])) {
|
||||||
struct in_addr ip_addr;
|
struct in_addr ip_addr;
|
||||||
char buf[22];
|
|
||||||
|
|
||||||
ip_addr.s_addr = inet_addr(buf);
|
ip_addr.s_addr = inet_addr(name);
|
||||||
if(strcmp(inet_ntoa(ip_addr), buf) == 0)
|
if(strcmp(inet_ntoa(ip_addr), name) == 0)
|
||||||
return(0); /* Ignore numeric IPs */
|
return(0); /* Ignore numeric IPs */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user