summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_str.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 2e1b79f2e5..e7a4fe7bb3 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1453,7 +1453,8 @@ int ipstr_list_parse(const char* ipstr_list, struct in_addr** ip_list)
struct in_addr addr;
/* convert single token to ip address */
- if (!inet_aton(token_str, &addr)) break;
+ if ( (addr.s_addr = inet_addr(token_str)) == INADDR_NONE )
+ break;
/* prepare place for another in_addr structure */
*ip_list = Realloc(*ip_list, (count + 1) * sizeof(struct in_addr));