diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-22 14:00:40 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-22 14:00:40 +0000 |
commit | 88bef55a6efceef72a1378d0c7fa93c277fb1940 (patch) | |
tree | ac89a7fa793830fa9fb6e1a02508126b41863dfd | |
parent | de4752d6e7d1922c14a51158dbab4497befa7d3c (diff) | |
download | samba-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)
-rw-r--r-- | source3/libsmb/cliconnect.c | 2 |
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; } |