summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-22 14:00:40 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-22 14:00:40 +0000
commit88bef55a6efceef72a1378d0c7fa93c277fb1940 (patch)
treeac89a7fa793830fa9fb6e1a02508126b41863dfd /source3
parentde4752d6e7d1922c14a51158dbab4497befa7d3c (diff)
downloadsamba-88bef55a6efceef72a1378d0c7fa93c277fb1940.tar.gz
samba-88bef55a6efceef72a1378d0c7fa93c277fb1940.tar.bz2
samba-88bef55a6efceef72a1378d0c7fa93c277fb1940.zip
fixed a segv in net time when the host is unavailable
(This used to be commit f4f2b613a2a804a6d2e5e78cc7dd7f3482675fcd)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cliconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 1cf85875b6..d304da7f51 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1071,7 +1071,7 @@ BOOL cli_connect(struct cli_state *cli, const char *host, struct in_addr *ip)
}
if (cli->fd == -1) {
DEBUG(1,("Error connecting to %s (%s)\n",
- inet_ntoa(*ip),strerror(errno)));
+ ip?inet_ntoa(*ip):host,strerror(errno)));
return False;
}