summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-06-18 05:42:18 +0000
committerTim Potter <tpot@samba.org>2001-06-18 05:42:18 +0000
commit7b01c627c62ef6be519110fcd6cb88c86c5cd0ab (patch)
treeb3f7bfd775a08f67a5fb301f64d7b8a64039e108 /source3/libsmb
parent672f554e76d763347985b2af3e03a426446edc2f (diff)
downloadsamba-7b01c627c62ef6be519110fcd6cb88c86c5cd0ab.tar.gz
samba-7b01c627c62ef6be519110fcd6cb88c86c5cd0ab.tar.bz2
samba-7b01c627c62ef6be519110fcd6cb88c86c5cd0ab.zip
Removed silly Get_Hostbyname() wrapper as DNS names are case-insensitive
and the use of this function only increased timeouts when Samba queries a broken DNS server. (This used to be commit 720fea53603b2f99153709e6717ca930ab60ca9f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 7714de760b..465198dfad 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -772,7 +772,7 @@ static BOOL resolve_hosts(const char *name,
DEBUG(3,("resolve_hosts: Attempting host lookup for name %s<0x20>\n", name));
- if (((hp = Get_Hostbyname(name)) != NULL) && (hp->h_addr != NULL)) {
+ if (((hp = sys_gethostbyname(name)) != NULL) && (hp->h_addr != NULL)) {
struct in_addr return_ip;
putip((char *)&return_ip,(char *)hp->h_addr);
*return_iplist = (struct in_addr *)malloc(sizeof(struct in_addr));