summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-20 11:53:09 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 08:16:51 +1100
commitdd33a22f1de513277ed1182f70eb81f16eaab543 (patch)
tree51b390288afd52b778bd550b8f885b86bbfc6778 /source4/dsdb/samdb/ldb_modules
parent340d7e807b2be7fb5c50a0cddf9378aa9bd929bf (diff)
downloadsamba-dd33a22f1de513277ed1182f70eb81f16eaab543.tar.gz
samba-dd33a22f1de513277ed1182f70eb81f16eaab543.tar.bz2
samba-dd33a22f1de513277ed1182f70eb81f16eaab543.zip
s4-dsdb: use a common method for finding a link pair
Use ^1 everywhere, to ensure it works for both forward and backward links
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index bf4a55054a..87868354a9 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -216,7 +216,7 @@ static int replmd_add_backlink(struct ldb_module *module, const struct dsdb_sche
struct replmd_private *replmd_private =
talloc_get_type_abort(ldb_module_get_private(module), struct replmd_private);
- target_attr = dsdb_attribute_by_linkID(schema, schema_attr->linkID + 1);
+ target_attr = dsdb_attribute_by_linkID(schema, schema_attr->linkID ^ 1);
if (!target_attr) {
/*
* windows 2003 has a broken schema where the