diff options
author | Gerald Carter <jerry@samba.org> | 2001-04-19 23:12:19 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-04-19 23:12:19 +0000 |
commit | de1fa32e03c4645f5af0b4dc05029d38dc51d658 (patch) | |
tree | b7732d57289d8eac64abada914d8d607ae32ceba /source/lib/access.c | |
parent | eee98c48f9bcdd777cdef007464df1c2f96e6b3c (diff) | |
download | samba-de1fa32e03c4645f5af0b4dc05029d38dc51d658.tar.gz samba-de1fa32e03c4645f5af0b4dc05029d38dc51d658.tar.xz samba-de1fa32e03c4645f5af0b4dc05029d38dc51d658.zip |
fixed problem in only_ipaddrs_in_list() which caused a hostname to
be considered an IP.
Diffstat (limited to 'source/lib/access.c')
-rw-r--r-- | source/lib/access.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/access.c b/source/lib/access.c index cf5a8134d26..1714d701102 100644 --- a/source/lib/access.c +++ b/source/lib/access.c @@ -262,11 +262,11 @@ static BOOL only_ipaddrs_in_list(const char* list) { char *p; /* - * if we failed, make surethat it was not because the token + * if we failed, make sure that it was not because the token * was a network/netmask pair. Only network/netmask pairs * have a '/' in them */ - if ((p=strtok(tok, "/")) == NULL) + if ((p=strchr(tok, '/')) == NULL) { only_ip = False; DEBUG(3,("only_ipaddrs_in_list: list [%s] has non-ip address %s\n", list, p)); |