summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-16 11:17:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:47 -0500
commit9469051d5bcdd6a91b688d20bc91bb3cb2ba094d (patch)
tree315411dc7dffc1f35a6eccd08fd01e17d0f52951 /source4/lib
parent1dbe7430c748d127302f36081653e4b8e35092e1 (diff)
downloadsamba-9469051d5bcdd6a91b688d20bc91bb3cb2ba094d.tar.gz
samba-9469051d5bcdd6a91b688d20bc91bb3cb2ba094d.tar.bz2
samba-9469051d5bcdd6a91b688d20bc91bb3cb2ba094d.zip
r6817: - fixed empty ldap search elements in filters
- added support for guids in cldap netlogon searches. the cldap server now passes the LDAP-CLDAP torture test (This used to be commit eb7979d9def389942fa1c54693d2dfcb8828f544)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index d9f7dbe524..5221ef4556 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -170,7 +170,7 @@ static struct ldb_parse_tree *ldb_parse_simple(TALLOC_CTX *ctx, const char *s)
ret->operation = LDB_OP_SIMPLE;
ret->u.simple.attr = l;
- ret->u.simple.value.data = val;
+ ret->u.simple.value.data = val?val:discard_const_p(char, "");
ret->u.simple.value.length = val?strlen(val):0;
return ret;