s4: Fix a -Wunused-value warning
authorVolker Lendecke <vl@samba.org>
Wed, 26 Sep 2012 17:07:32 +0000 (10:07 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Oct 2012 12:49:09 +0000 (14:49 +0200)
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 26 21:52:00 CEST 2012 on sn-devel-104
(cherry picked from commit 5022b3d8c183181b922e3ccac49e5819eb453035)

Fix bug #9223 - Uninitialized variable in the cldap server can give bad netlogon
netsamlogon response.

source4/cldap_server/netlogon.c

index ce257e9e1aea2a16e0048579fa864c254a1ace72..6d5efb5560c9c51d8bb498aea93ccb03c1c48e33 100644 (file)
@@ -241,7 +241,7 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
        }
 
        if (str_list_check(services, "ntp_signd")) {
-               server_type | DS_SERVER_TIMESERV | DS_SERVER_GOOD_TIMESERV;
+               server_type |= DS_SERVER_TIMESERV | DS_SERVER_GOOD_TIMESERV;
        }
 
        if (samdb_rodc(sam_ctx, &am_rodc) == LDB_SUCCESS && !am_rodc) {