mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3:libsmb/async_smb: let cli_smb_recv() initialize output values for one way requests
metze
This commit is contained in:
committed by
Jeremy Allison
parent
f3ba1f4112
commit
49cdf171a5
@ -694,6 +694,24 @@ NTSTATUS cli_smb_recv(struct tevent_req *req,
|
||||
}
|
||||
|
||||
if (state->inbuf == NULL) {
|
||||
if (min_wct != 0) {
|
||||
return NT_STATUS_INVALID_NETWORK_RESPONSE;
|
||||
}
|
||||
if (pinbuf) {
|
||||
*pinbuf = NULL;
|
||||
}
|
||||
if (pwct) {
|
||||
*pwct = 0;
|
||||
}
|
||||
if (pvwv) {
|
||||
*pvwv = NULL;
|
||||
}
|
||||
if (pnum_bytes) {
|
||||
*pnum_bytes = 0;
|
||||
}
|
||||
if (pbytes) {
|
||||
*pbytes = NULL;
|
||||
}
|
||||
/* This was a request without a reply */
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user