summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-23 13:09:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:33 -0500
commit803b5d8aa46f5a26a31b65992e5aa34e3df9495c (patch)
tree4917033affef95a7cbbc699aee2119f6971ec850 /source4
parent07882b5460121c4ed100f9655935501f7cf23856 (diff)
downloadsamba-803b5d8aa46f5a26a31b65992e5aa34e3df9495c.tar.gz
samba-803b5d8aa46f5a26a31b65992e5aa34e3df9495c.tar.bz2
samba-803b5d8aa46f5a26a31b65992e5aa34e3df9495c.zip
r344: fixed deletion of index records
(This used to be commit 246f17cd4a7851042739574f1e07b113c44275c7)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index 95162ae575..05ae2bbc14 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -731,7 +731,7 @@ int ltdb_index_del(struct ldb_context *ldb, const struct ldb_message *msg)
*/
static int delete_index(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *state)
{
- if (strncmp(key.dptr, "@INDEX:", 7) == 0) {
+ if (strncmp(key.dptr, "DN=@INDEX:", 10) == 0) {
return tdb_delete(tdb, key);
}
return 0;