From 5b875a83a9c641f9e016bd4e83051170f7bd50d0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 1 Sep 2010 12:55:18 +0200 Subject: s3: Print the IP of the server that stopped responding --- source3/libsmb/clientgen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 5c6c86d208..cdf51c75c3 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; -- cgit