summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-10-01 14:20:10 -0700
committerJeremy Allison <jra@samba.org>2014-10-02 04:42:26 +0200
commit6c05cd3e895831be7d9a68a51de2048d04c188a0 (patch)
treee2cd2a96392784ebff3171abb1ad9e014272f4f5 /libcli
parent7f17e017b5fba4a9a83457c83c0c2d6bb88c7381 (diff)
downloadsamba-6c05cd3e895831be7d9a68a51de2048d04c188a0.tar.gz
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 <jra@samba.org> Reviewed-by: "Stefan (metze) Metzmacher" <metze@samba.org> Reviewed-by: David Disseldorp <ddiss@suse.de> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Oct 2 04:42:26 CEST 2014 on sn-devel-104
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smb2cli_query_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/smb/smb2cli_query_info.c b/libcli/smb/smb2cli_query_info.c
index 454f25a1359..a24844bcf85 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;