1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbXcli: Align smb2cli_req_create() with tevent_req conventions

We don't return NULL if tevent_req_create() succeeded, and elsewhere
in this function we already pass tevent_req_nterror or
tevent_req_nomem (via set_endtime).

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-09-29 11:00:41 +02:00 committed by Jeremy Allison
parent 25bb94e00e
commit 36bd73e836

View File

@ -3081,9 +3081,8 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
}
state->smb2.recv_iov = talloc_zero_array(state, struct iovec, 3);
if (state->smb2.recv_iov == NULL) {
TALLOC_FREE(req);
return NULL;
if (tevent_req_nomem(state->smb2.recv_iov, req)) {
return req;
}
flags |= additional_flags;