diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-11 12:26:31 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-12 11:08:00 +0200 |
commit | 56d3c91af70809fbdd86de888ac983a41e070ca3 (patch) | |
tree | 5846ce40852a93e6b330861f07bd144d095e48b6 /source3 | |
parent | 4335a4f1c6ad4e8dfcd4cc1bcd8b3ec2f258a4d8 (diff) | |
download | samba-56d3c91af70809fbdd86de888ac983a41e070ca3.tar.gz samba-56d3c91af70809fbdd86de888ac983a41e070ca3.tar.bz2 samba-56d3c91af70809fbdd86de888ac983a41e070ca3.zip |
s3:libsmb: notify all request about failures in cli_smb_req_set_pending()
It's up to the caller to notify the current request,
but we have to notify all other pending requests if
we're not able to read the next response from the server.
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/async_smb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 60ba1e550f..2744f8135a 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -211,7 +211,14 @@ bool cli_smb_req_set_pending(struct tevent_req *req) talloc_set_destructor(req, cli_smb_req_destructor); if (!cli_state_receive_next(cli)) { + /* + * the caller should notify the current request + * + * And all other pending requests get notified + * by cli_state_notify_pending(). + */ cli_smb_req_unset_pending(req); + cli_state_notify_pending(cli, NT_STATUS_NO_MEMORY); return false; } |