s3: Fix async smb handling
commit1335059ff5ef1a8f0f9aedf6a6db366074d457f3
authorVolker Lendecke <vl@samba.org>
Tue, 26 Jul 2011 17:44:51 +0000 (26 19:44 +0200)
committerVolker Lendecke <vlendec@samba.org>
Tue, 26 Jul 2011 22:47:45 +0000 (27 00:47 +0200)
tree34ef11e4eb14bc67c9dbe66f3ca16e427e4062e9
parenta5ba41881c393d075238a537aeca273df446389b
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
source3/libsmb/async_smb.c