mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r16870: copy over the status from the ntvfs request to the smb2 request
so that smb2srv_setup_reply() doesn't push uninitialized data (found by valgrind) metze
This commit is contained in:
parent
7761a2a595
commit
1a1fd2747d
@ -136,6 +136,7 @@ struct smbsrv_request;
|
||||
/* check req->ntvfs->async_states->status and if not OK then send an error reply */
|
||||
#define SMB2SRV_CHECK_ASYNC_STATUS_ERR_SIMPLE do { \
|
||||
req = talloc_get_type(ntvfs->async_states->private_data, struct smb2srv_request); \
|
||||
req->status = ntvfs->async_states->status; \
|
||||
if (NT_STATUS_IS_ERR(ntvfs->async_states->status)) { \
|
||||
smb2srv_send_error(req, ntvfs->async_states->status); \
|
||||
return; \
|
||||
@ -147,6 +148,7 @@ struct smbsrv_request;
|
||||
} while (0)
|
||||
#define SMB2SRV_CHECK_ASYNC_STATUS_SIMPLE do { \
|
||||
req = talloc_get_type(ntvfs->async_states->private_data, struct smb2srv_request); \
|
||||
req->status = ntvfs->async_states->status; \
|
||||
if (!NT_STATUS_IS_OK(ntvfs->async_states->status)) { \
|
||||
smb2srv_send_error(req, ntvfs->async_states->status); \
|
||||
return; \
|
||||
|
Loading…
Reference in New Issue
Block a user