diff options
author | Simo Sorce <idra@samba.org> | 2005-07-17 14:15:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:35 -0500 |
commit | 7bcccfc000a22c1f686341678f171bcfaed19763 (patch) | |
tree | 6165240c18a3c037e81bcdc82d4950c7cedc4dfd /source4/lib/ldb/common | |
parent | 5033ce466c4ce679d13cb9f06cb1a90854486bcd (diff) | |
download | samba-7bcccfc000a22c1f686341678f171bcfaed19763.tar.gz samba-7bcccfc000a22c1f686341678f171bcfaed19763.tar.bz2 samba-7bcccfc000a22c1f686341678f171bcfaed19763.zip |
r8529: Matching against the wrong union
(This used to be commit 24a65b5ba6e31655bdf49be8076d758206694ac3)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb_match.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |