From 803b5d8aa46f5a26a31b65992e5aa34e3df9495c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 23 Apr 2004 13:09:53 +0000 Subject: r344: fixed deletion of index records (This used to be commit 246f17cd4a7851042739574f1e07b113c44275c7) --- source4/lib/ldb/ldb_tdb/ldb_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb/ldb_tdb') 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; -- cgit