Fixes:
smbXcli_base.c:4885:20: warning: Dereference of null pointer <--[clang]
body = (uint8_t *)iov[1].iov_base;
^~~~~~~~~~~~~~~
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
size_t security_offset, security_length;
DATA_BLOB blob;
NTSTATUS status;
- struct iovec *iov;
+ struct iovec *iov = NULL;
uint8_t *body;
size_t i;
uint16_t dialect_revision;
status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected));
- if (tevent_req_nterror(req, status)) {
+ if (tevent_req_nterror(req, status) || iov == NULL) {
return;
}