diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-26 22:57:47 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-26 22:58:16 +0200 |
commit | 5030ba5e9473b4d169f69afdcf2de20ce14f82f9 (patch) | |
tree | 787113df2595baf863f79f18f08fb86b43f423db /source3/libsmb | |
parent | b6c4eb3c5204a5d43af10ba349fedc5f40796607 (diff) | |
download | samba-5030ba5e9473b4d169f69afdcf2de20ce14f82f9.tar.gz samba-5030ba5e9473b4d169f69afdcf2de20ce14f82f9.tar.bz2 samba-5030ba5e9473b4d169f69afdcf2de20ce14f82f9.zip |
s3: Callers of cli_qpathinfo_recv might ignore the output
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 802fab95a0..6b8230b674 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -5190,8 +5190,14 @@ NTSTATUS cli_qpathinfo_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, if (tevent_req_is_nterror(req, &status)) { return status; } - *rdata = talloc_move(mem_ctx, &state->rdata); - *num_rdata = state->num_rdata; + if (rdata != NULL) { + *rdata = talloc_move(mem_ctx, &state->rdata); + } else { + TALLOC_FREE(state->rdata); + } + if (num_rdata != NULL) { + *num_rdata = state->num_rdata; + } return NT_STATUS_OK; } |