summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-11-27 04:45:12 +0000
committerGerald Carter <jerry@samba.org>2002-11-27 04:45:12 +0000
commitbea9e3416f594bc876870630a1e2e4a32159664e (patch)
treefa5b681839d3cb48b49f2ffa53cf52962b8db36e
parent2f86978f5329b4ec67bb673ed32ea7f4ea7b5a1b (diff)
downloadsamba-bea9e3416f594bc876870630a1e2e4a32159664e.tar.gz
samba-bea9e3416f594bc876870630a1e2e4a32159664e.tar.bz2
samba-bea9e3416f594bc876870630a1e2e4a32159664e.zip
removing inet_aton()
(This used to be commit 08ac3610f9ef7e1c37541729441acfa13b48d34c)
-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));