]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mingw: work around mingw more liberal ip parsing
authorVictor Julien <victor@inliniac.net>
Sat, 25 Nov 2017 13:23:35 +0000 (14:23 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 20 Dec 2017 15:23:31 +0000 (16:23 +0100)
src/util-host-os-info.c

index 93e73a82d0a3148fe2522945172263478196d0a0..d72bffb416f2122788422400c0342c9be4150bd2 100644 (file)
@@ -130,7 +130,8 @@ int SCHInfoAddHostOSInfo(const char *host_os, const char *host_os_ip_range, int
     int *user_data = NULL;
     char recursive = FALSE;
 
-    if (host_os == NULL || host_os_ip_range == NULL) {
+    if (host_os == NULL || host_os_ip_range == NULL ||
+            strlen(host_os_ip_range) == 0) {
         SCLogError(SC_ERR_INVALID_ARGUMENT, "Invalid arguments");
         return -1;
     }