summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-01 12:55:18 +0200
committerVolker Lendecke <vl@samba.org>2010-09-01 12:57:16 +0200
commit5b875a83a9c641f9e016bd4e83051170f7bd50d0 (patch)
tree80a2e10c1327a3bac8540d03217931b82f9496eb
parentd45f901b9304977f7125fefcfc889076471442b4 (diff)
downloadsamba-5b875a83a9c641f9e016bd4e83051170f7bd50d0.tar.gz
samba-5b875a83a9c641f9e016bd4e83051170f7bd50d0.tar.xz
samba-5b875a83a9c641f9e016bd4e83051170f7bd50d0.zip
s3: Print the IP of the server that stopped responding
-rw-r--r--source3/libsmb/clientgen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 5c6c86d2088..cdf51c75c37 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -247,7 +247,11 @@ bool cli_receive_smb(struct cli_state *cli)
/* If the server is not responding, note that now */
if (len < 0) {
- DEBUG(0, ("Receiving SMB: Server stopped responding\n"));
+ char addr[INET6_ADDRSTRLEN];
+
+ print_sockaddr(addr, sizeof(addr), &cli->dest_ss);
+ DEBUG(0, ("Receiving SMB: Server %s stopped responding\n",
+ addr));
close(cli->fd);
cli->fd = -1;
return false;