summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-23 16:25:57 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-23 16:25:57 +0000
commitc45fbe69f5b7a57fea9ba18cfa47e63b42de7992 (patch)
treed70cba9dc1ba6f5e4ac1c33a9a30ba1579fe563b /source3/libsmb
parent9e21abd3148f3d2911078666e75d5fc7218418eb (diff)
downloadsamba-c45fbe69f5b7a57fea9ba18cfa47e63b42de7992.tar.gz
samba-c45fbe69f5b7a57fea9ba18cfa47e63b42de7992.tar.bz2
samba-c45fbe69f5b7a57fea9ba18cfa47e63b42de7992.zip
better error reporting for servers that don't do port 445
(This used to be commit a896dc299eba12886d800e6c88309d534232cabc)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index eb14f54b1a..31b3541376 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -600,8 +600,11 @@ BOOL cli_connect(struct cli_state *cli, const char *host, struct in_addr *ip)
}
if (cli->fd != -1) cli->port = port;
}
- if (cli->fd == -1)
+ if (cli->fd == -1) {
+ DEBUG(1,("Error connecting to %s (%s)\n",
+ inet_ntoa(*ip),strerror(errno)));
return False;
+ }
set_socket_options(cli->fd,user_socket_options);