git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2125c5b
)
s3: Print the IP of the server that stopped responding
author
Volker Lendecke
<vl@samba.org>
Wed, 1 Sep 2010 10:55:18 +0000
(12:55 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 1 Sep 2010 11:00:48 +0000
(13:00 +0200)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 5dc43e93ad6927808928d47321ac848faa0c98ae..33228b7a06e96182fdb2d989a9f4f321289db604 100644
(file)
--- a/
source3/libsmb/clientgen.c
+++ b/
source3/libsmb/clientgen.c
@@
-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;