git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d45f901
)
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 10:57:16 +0000
(12:57 +0200)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 5c6c86d20881fe87313aa8056c4ec1d34535de15..cdf51c75c37942de02486d3426b4124eba158623 100644
(file)
--- 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;