From: Andrew Bartlett Date: Fri, 19 Dec 2014 02:39:59 +0000 (+1300) Subject: dsdb: Improve code clarity for ldb_extended_dn_in_openldap mode X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=172aa0ee3885720464e8eacd728eb1a1342fc9b4 dsdb: Improve code clarity for ldb_extended_dn_in_openldap mode Pair-programmed-with: Garming Sam Signed-off-by: Garming Sam Signed-off-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c index bf0da81a246..41270361e72 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c @@ -395,9 +395,13 @@ static int extended_dn_filter_callback(struct ldb_parse_tree *tree, void *privat * pointer and a boolean to tell us the exact same thing. */ if (!has_extended_component) { - if (!attribute->one_way_link || - ldb_module_get_ops(filter_ctx->module) == &ldb_extended_dn_in_openldap_module_ops) - return LDB_SUCCESS; + if (!attribute->one_way_link) { + return LDB_SUCCESS; + } + + if (ldb_module_get_ops(filter_ctx->module) == &ldb_extended_dn_in_openldap_module_ops) { + return LDB_SUCCESS; + } } if (tree->operation == LDB_OP_EQUALITY) {