From 7bcccfc000a22c1f686341678f171bcfaed19763 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 17 Jul 2005 14:15:45 +0000 Subject: r8529: Matching against the wrong union (This used to be commit 24a65b5ba6e31655bdf49be8076d758206694ac3) --- source4/lib/ldb/common/ldb_match.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/common/ldb_match.c b/source4/lib/ldb/common/ldb_match.c index f437f31eac..3664855ddd 100644 --- a/source4/lib/ldb/common/ldb_match.c +++ b/source4/lib/ldb/common/ldb_match.c @@ -2,6 +2,7 @@ ldb database library Copyright (C) Andrew Tridgell 2004-2005 + Copyright (C) Simo Sorce 2005 ** NOTE! The following LGPL license applies to the ldb ** library. This does NOT imply that all of Samba is released @@ -101,11 +102,11 @@ static int ldb_match_present(struct ldb_context *ldb, enum ldb_scope scope) { - if (ldb_attr_cmp(tree->u.simple.attr, "dn") == 0) { + if (ldb_attr_cmp(tree->u.present.attr, "dn") == 0) { return 1; } - if (ldb_msg_find_element(msg, tree->u.simple.attr)) { + if (ldb_msg_find_element(msg, tree->u.present.attr)) { return 1; } -- cgit