diff options
author | Luca Deri <deri@ntop.org> | 2021-10-13 19:21:27 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-10-13 19:21:27 +0200 |
commit | 6e649e0cb6d45d72600198c25f4069f4aeb1e121 (patch) | |
tree | 248735a607ead25eb51ff50293fc0cf0ea30ddbe /src | |
parent | 09668496c30ac5781f7bf54187235b3f62030113 (diff) |
Fixed issue on DGA numeric IP detection
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 06edfa28a..68729e071 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -7517,10 +7517,9 @@ int ndpi_check_dga_name(struct ndpi_detection_module_struct *ndpi_str, if(isdigit(name[0])) { struct in_addr ip_addr; - char buf[22]; - ip_addr.s_addr = inet_addr(buf); - if(strcmp(inet_ntoa(ip_addr), buf) == 0) + ip_addr.s_addr = inet_addr(name); + if(strcmp(inet_ntoa(ip_addr), name) == 0) return(0); /* Ignore numeric IPs */ } |