From: Victor Julien Date: Sat, 25 Nov 2017 13:23:35 +0000 (+0100) Subject: mingw: work around mingw more liberal ip parsing X-Git-Tag: suricata-4.1.0-beta1~395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a7f6b53f97b6b76f35c659e40d25110aebb697;p=thirdparty%2Fsuricata.git mingw: work around mingw more liberal ip parsing --- diff --git a/src/util-host-os-info.c b/src/util-host-os-info.c index 93e73a82d0..d72bffb416 100644 --- a/src/util-host-os-info.c +++ b/src/util-host-os-info.c @@ -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; }