From 25b0536da32d32f03bf88caa3198287e9d2fdae3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 1 Oct 2014 14:20:10 -0700 Subject: [PATCH] s3: smb2cli: query info return length check was reversed. Make it identical to the check in libcli/smb/smb2cli_ioctl.c https://bugzilla.samba.org/show_bug.cgi?id=10848 Signed-off-by: Jeremy Allison Reviewed-by: "Stefan (metze) Metzmacher" Reviewed-by: David Disseldorp Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Oct 2 04:42:26 CEST 2014 on sn-devel-104 (cherry picked from commit 6c05cd3e895831be7d9a68a51de2048d04c188a0) --- libcli/smb/smb2cli_query_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcli/smb/smb2cli_query_info.c b/libcli/smb/smb2cli_query_info.c index 80cec9c..0be3736 100644 --- a/libcli/smb/smb2cli_query_info.c +++ b/libcli/smb/smb2cli_query_info.c @@ -152,7 +152,7 @@ static void smb2cli_query_info_done(struct tevent_req *subreq) return; } - if (output_buffer_length < dyn_len) { + if (output_buffer_length > dyn_len) { tevent_req_nterror( req, NT_STATUS_INVALID_NETWORK_RESPONSE); return; -- 1.9.1