From 1f47409790c944feb640135f022180d7fa9a3360 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 is identical to the check in libcli/smb/smb2cli_ioctl.c https://bugzilla.samba.org/show_bug.cgi?id=10848 Signed-off-by: Jeremy Allison --- 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 454f25a..a24844b 100644 --- a/libcli/smb/smb2cli_query_info.c +++ b/libcli/smb/smb2cli_query_info.c @@ -154,7 +154,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; -- 2.1.0.rc2.206.gedb03e5