From 1335059ff5ef1a8f0f9aedf6a6db366074d457f3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 26 Jul 2011 19:44:51 +0200 Subject: 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 --- source3/include/client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include') 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; -- cgit