mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
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
This commit is contained in:
parent
4335a4f1c6
commit
56d3c91af7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user