From: Andrew Tridgell Date: Thu, 23 Aug 2001 16:25:57 +0000 (+0000) Subject: better error reporting for servers that don't do port 445 X-Git-Tag: samba-4.0.0alpha6~801^2~17544 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c45fbe69f5b7a57fea9ba18cfa47e63b42de7992;p=thirdparty%2Fsamba.git better error reporting for servers that don't do port 445 (This used to be commit a896dc299eba12886d800e6c88309d534232cabc) --- diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index f18fa2e0193..d7a2a2e7b94 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -889,7 +889,7 @@ connect_again: #endif if (ret < 0) { - DEBUG(1,("error connecting to %s:%d (%s)\n", + DEBUG(2,("error connecting to %s:%d (%s)\n", inet_ntoa(*addr),port,strerror(errno))); close(res); return -1; diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index eb14f54b1a1..31b35413762 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);