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

libcli/smb: Set error status if 'iov' pointer is NULL

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15152

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug 22 09:03:29 UTC 2022 on sn-devel-184

(cherry picked from commit 75e03ea021)
This commit is contained in:
Joseph Sutton 2022-08-22 16:56:46 +12:00 committed by Jule Anger
parent f33ad1c172
commit f6afc5b35e

View File

@ -5013,7 +5013,11 @@ static void smbXcli_negprot_smb2_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, state, &iov, status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected)); expected, ARRAY_SIZE(expected));
if (tevent_req_nterror(req, status) || iov == NULL) { if (tevent_req_nterror(req, status)) {
return;
}
if (iov == NULL) {
tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);
return; return;
} }