]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsgetdcname: fix flag check
authorUri Simchoni <uri@samba.org>
Thu, 3 Mar 2016 07:18:57 +0000 (09:18 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 20 Jun 2016 07:59:24 +0000 (09:59 +0200)
Fix the check for zero requseted flags.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11769

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 6d717402e42131298ba670ee47686379854ec56d)

source3/libsmb/dsgetdcname.c

index 673e10b427a2d8d5feb729e6ee23e08d3d86eb1d..213a8e3c071739b36e267ff6376cd1237e0b18e7 100644 (file)
@@ -284,7 +284,7 @@ static uint32_t get_cldap_reply_server_flags(struct netlogon_samlogon_response *
 static bool check_cldap_reply_required_flags(uint32_t ret_flags,
                                             uint32_t req_flags)
 {
-       if (ret_flags == 0) {
+       if (req_flags == 0) {
                return true;
        }