summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
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/lib/util_sock.c
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/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index d741f038ce..b0426e3809 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -791,9 +791,9 @@ int open_socket_in(int type, int port, int dlevel,uint32 socket_addr, BOOL rebin
{ DEBUG(0,("gethostname failed\n")); return -1; }
/* get host info */
- if ((hp = Get_Hostbyname(host_name)) == 0)
+ if ((hp = sys_gethostbyname(host_name)) == 0)
{
- DEBUG(0,( "Get_Hostbyname: Unknown host %s\n",host_name));
+ DEBUG(0,( "sys_gethostbyname: Unknown host %s\n",host_name));
return -1;
}
@@ -945,8 +945,8 @@ static BOOL matchname(char *remotehost,struct in_addr addr)
struct hostent *hp;
int i;
- if ((hp = Get_Hostbyname(remotehost)) == 0) {
- DEBUG(0,("Get_Hostbyname(%s): lookup failure.\n", remotehost));
+ if ((hp = sys_gethostbyname(remotehost)) == 0) {
+ DEBUG(0,("sys_gethostbyname(%s): lookup failure.\n", remotehost));
return False;
}