diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-06-08 00:40:54 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-06-10 19:27:05 +0200 |
commit | 49cdf171a5198495aead9ace43963e805331e20b (patch) | |
tree | 8160ac8e41b68c8fd4382fd43aa302409bbabfa0 | |
parent | f3ba1f4112b1216239e6c13a9d898e6bdbd86785 (diff) | |
download | samba-49cdf171a5198495aead9ace43963e805331e20b.tar.gz samba-49cdf171a5198495aead9ace43963e805331e20b.tar.bz2 samba-49cdf171a5198495aead9ace43963e805331e20b.zip |
s3:libsmb/async_smb: let cli_smb_recv() initialize output values for one way requests
metze
-rw-r--r-- | source3/libsmb/async_smb.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 2ce641094f..45e83b87c2 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -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; } |