summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-01-25 02:59:13 +0000
committerJeremy Allison <jra@samba.org>2001-01-25 02:59:13 +0000
commit5aef8a21c6e3cd690afb11d2d69d2e9bac25b6b4 (patch)
tree4b67843670c57ab03153afb8095d50046f63e43f /source3/libsmb
parentcf90dbd158de152221f294c478cd4f7ba44cdb5c (diff)
downloadsamba-5aef8a21c6e3cd690afb11d2d69d2e9bac25b6b4.tar.gz
samba-5aef8a21c6e3cd690afb11d2d69d2e9bac25b6b4.tar.bz2
samba-5aef8a21c6e3cd690afb11d2d69d2e9bac25b6b4.zip
Fixes from appliance-head for pdc searches.
Jeremy. (This used to be commit d04ed97ecab846def8467f313a71ef0e5c4005f6)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 59a3856cfb..173fe12bcb 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/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");
}