diff options
author | Jeremy Allison <jra@samba.org> | 2001-01-25 02:59:04 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-01-25 02:59:04 +0000 |
commit | 94a69b34b5dca992e1fbb87910ec52de25c3ff2e (patch) | |
tree | 0400f2da3f48bb07ee5b99034ba6eba451c92ce4 /source/libsmb/namequery.c | |
parent | 7839489fb33d7c130823d2401afbf10170378732 (diff) | |
download | samba-94a69b34b5dca992e1fbb87910ec52de25c3ff2e.tar.gz samba-94a69b34b5dca992e1fbb87910ec52de25c3ff2e.tar.xz samba-94a69b34b5dca992e1fbb87910ec52de25c3ff2e.zip |
Fixes from appliance-head for pdc searches.
Jeremy.
Diffstat (limited to 'source/libsmb/namequery.c')
-rw-r--r-- | source/libsmb/namequery.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c index 59a3856cfb8..173fe12bcbc 100644 --- a/source/libsmb/namequery.c +++ b/source/libsmb/namequery.c @@ -629,23 +629,6 @@ static BOOL resolve_hosts(const char *name, } /******************************************************** - Resolve a name into an IP address. Use this function if - the string is either an IP address, DNS or host name - or NetBIOS name. This uses the name switch in the - smb.conf to determine the order of name resolution. -*********************************************************/ -BOOL is_ip_address(const char *name) -{ - int i; - for (i=0; name[i]; i++) - if (!(isdigit((int)name[i]) || name[i] == '.')) - return False; - - return True; -} - - -/******************************************************** Internal interface to resolve a name into an IP address. Use this function if the string is either an IP address, DNS or host name or NetBIOS name. This uses the name switch in the @@ -775,7 +758,7 @@ BOOL resolve_srv_name(const char* srv_name, fstring dest_host, ret = resolve_name(dest_host, ip, 0x20); } - if (is_ip_address(dest_host)) + if (is_ipaddress(dest_host)) { fstrcpy(dest_host, "*SMBSERVER"); } |