From: Stefan Metzmacher Date: Thu, 9 Feb 2023 14:03:58 +0000 (+0100) Subject: s4:dsdb/extended_dn_out: make use of the existing have_reveal_control variable X-Git-Tag: talloc-2.4.1~1290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06fb5cdffdd1c5d7ac85746fd67cd8c30eb5ace4;p=thirdparty%2Fsamba.git s4:dsdb/extended_dn_out: make use of the existing have_reveal_control variable BUG: https://bugzilla.samba.org/show_bug.cgi?id=12967 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c index 53cbe345070..1664b4466b5 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c @@ -402,8 +402,7 @@ static int extended_callback(struct ldb_request *req, struct ldb_reply *ares) talloc_free(dsdb_dn); return ldb_module_done(ac->req, NULL, NULL, ret); } - if (remove_value && - !ldb_request_get_control(req, LDB_CONTROL_REVEAL_INTERNALS)) { + if (remove_value && !have_reveal_control) { /* we show these with REVEAL to allow dbcheck to find and cleanup these orphaned links */