summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-08-27 12:43:15 +0000
committerGerald Carter <jerry@samba.org>2002-08-27 12:43:15 +0000
commitc53bbb55f67aacdd30cff7fb46064ce009d7794f (patch)
tree0075770d2d3444fd3faaf2a21d827d7fe22ee9c3 /source3/libsmb
parent995bf62aae0329750b2fff62db4f2b113a9f93e0 (diff)
downloadsamba-c53bbb55f67aacdd30cff7fb46064ce009d7794f.tar.gz
samba-c53bbb55f67aacdd30cff7fb46064ce009d7794f.tar.bz2
samba-c53bbb55f67aacdd30cff7fb46064ce009d7794f.zip
merge from SAMBA_2_2
(This used to be commit b58ddacf73589870252eea52da68841e7294672d)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmbclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 3897851167..44cba611d2 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -378,7 +378,7 @@ SMBCSRV *smbc_server(SMBCCTX *context,
fstring remote_name;
struct in_addr rem_ip;
- if (!inet_aton(server, &rem_ip)) {
+ if ((rem_ip.s_addr=inet_addr(server)) == INADDR_NONE) {
DEBUG(4, ("Could not convert IP address %s to struct in_addr\n", server));
errno = ENOENT;
return NULL;