From 3bf3ab4f648f48c703d491ba2a883a1895960dbd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 17 Dec 2012 15:17:45 +0100 Subject: libcli: Fix smb2cli_ioctl_send() if clause. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Günther Deschner --- libcli/smb/smb2cli_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcli') 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; -- cgit