mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
removing inet_aton()
This commit is contained in:
parent
20e6d8c036
commit
08ac3610f9
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user