summaryrefslogtreecommitdiff
path: root/source3/include/client.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-26 19:44:51 +0200
committerVolker Lendecke <vlendec@samba.org>2011-07-27 00:47:45 +0200
commit1335059ff5ef1a8f0f9aedf6a6db366074d457f3 (patch)
tree34ef11e4eb14bc67c9dbe66f3ca16e427e4062e9 /source3/include/client.h
parenta5ba41881c393d075238a537aeca273df446389b (diff)
downloadsamba-1335059ff5ef1a8f0f9aedf6a6db366074d457f3.tar.gz
samba-1335059ff5ef1a8f0f9aedf6a6db366074d457f3.tar.bz2
samba-1335059ff5ef1a8f0f9aedf6a6db366074d457f3.zip
s3: Fix async smb handling
In cli_echo with more than one response we ended up with more than one read_smb request. One from the call to cli_smb_req_set_pending called from cli_smb_received. The other one from cli_smb_received itself. I don't really see another way to deal with this than to hold the read_smb request in the cli_state. Metze, please check! Volker
Diffstat (limited to 'source3/include/client.h')
-rw-r--r--source3/include/client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 34d99d4c08..c4f011dfe7 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -124,6 +124,7 @@ struct cli_state {
struct sockaddr_storage local_ss;
struct sockaddr_storage remote_ss;
const char *remote_name;
+ struct tevent_req *read_smb_req;
struct tevent_queue *outgoing;
struct tevent_req **pending;
} conn;