s3: Print the IP of the server that stopped responding
authorVolker Lendecke <vl@samba.org>
Wed, 1 Sep 2010 10:55:18 +0000 (12:55 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 1 Sep 2010 11:00:48 +0000 (13:00 +0200)
source3/libsmb/clientgen.c

index 5dc43e93ad6927808928d47321ac848faa0c98ae..33228b7a06e96182fdb2d989a9f4f321289db604 100644 (file)
@@ -171,7 +171,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;