getncchanges.c: Remove unused null_scope variable
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 11 Jun 2017 23:20:54 +0000 (11:20 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Jul 2017 22:25:15 +0000 (00:25 +0200)
This was added in 4cc6b5a69b1f94d96a73ac1 but the very next commit
(f1c6bab60e52624f5f3) removed where it was set, which meant the variable
was always false and seemingly pointless.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/rpc_server/drsuapi/getncchanges.c

index a2063aaac8fe84d7ef302e9b9be89a127799bca8..096162dfded35c6a0234d9e72b2adde59cdb2dfa 100644 (file)
@@ -2022,7 +2022,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
        uint32_t link_total = 0;
        uint32_t link_given = 0;
        struct ldb_dn *search_dn = NULL;
-       bool am_rodc, null_scope=false;
+       bool am_rodc;
        enum security_user_level security_level;
        struct ldb_context *sam_ctx;
        struct dom_sid *user_sid;
@@ -2553,7 +2553,6 @@ allowed:
 
        for (i=getnc_state->num_processed;
             i<getnc_state->num_records &&
-                    !null_scope &&
                     (r->out.ctr->ctr6.object_count < max_objects)
                     && !max_wait_reached;
            i++) {