diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-17 15:17:45 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-21 13:56:00 +0100 |
commit | 3bf3ab4f648f48c703d491ba2a883a1895960dbd (patch) | |
tree | 70b024814fe2117983d40382ef215d44d1ccc06d /libcli | |
parent | f8a5abf960f40673a5113cc6820a68eb01662d3e (diff) | |
download | samba-3bf3ab4f648f48c703d491ba2a883a1895960dbd.tar.gz samba-3bf3ab4f648f48c703d491ba2a883a1895960dbd.tar.bz2 samba-3bf3ab4f648f48c703d491ba2a883a1895960dbd.zip |
libcli: Fix smb2cli_ioctl_send() if clause.
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb2cli_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/smb/smb2cli_ioctl.c b/libcli/smb/smb2cli_ioctl.c index dd1788f4fc..ced9ee63ab 100644 --- a/libcli/smb/smb2cli_ioctl.c +++ b/libcli/smb/smb2cli_ioctl.c @@ -77,6 +77,7 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx, if (in_output_buffer) { output_buffer_offset = SMB2_HDR_BODY+0x38; + output_buffer_length = in_output_buffer->length; if (input_buffer_length > 0 && output_buffer_length > 0) { uint32_t tmp; output_buffer_offset += input_buffer_length; @@ -84,7 +85,6 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx, output_buffer_offset = NDR_ROUND(output_buffer_offset, 8); pad_length = output_buffer_offset - tmp; } - output_buffer_length = in_output_buffer->length; } fixed = state->fixed; |