From d6a7f6b53f97b6b76f35c659e40d25110aebb697 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 25 Nov 2017 14:23:35 +0100 Subject: [PATCH] mingw: work around mingw more liberal ip parsing --- src/util-host-os-info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.2