diff options
author | Volker Lendecke <vl@samba.org> | 2011-04-30 10:58:35 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-07-03 11:31:29 +0200 |
commit | c31871264c3cdcbb9a05d8f4649c029a9a39ea9f (patch) | |
tree | e2bf0196e73c4c5667b460a17f1a0b0417325da7 /source3/libsmb | |
parent | 25df2fe8e224fad1a665414f2b4022b42f77075c (diff) | |
download | samba-c31871264c3cdcbb9a05d8f4649c029a9a39ea9f.tar.gz samba-c31871264c3cdcbb9a05d8f4649c029a9a39ea9f.tar.bz2 samba-c31871264c3cdcbb9a05d8f4649c029a9a39ea9f.zip |
s3: Allow NULL for arg pwritten in cli_write_andx
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clireadwrite.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index 14b6401051..64bdb484f3 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -903,7 +903,9 @@ NTSTATUS cli_write_andx_recv(struct tevent_req *req, size_t *pwritten) if (tevent_req_is_nterror(req, &status)) { return status; } - *pwritten = state->written; + if (pwritten != 0) { + *pwritten = state->written; + } return NT_STATUS_OK; } |