1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r344: fixed deletion of index records

(This used to be commit 246f17cd4a)
This commit is contained in:
Andrew Tridgell 2004-04-23 13:09:53 +00:00 committed by Gerald (Jerry) Carter
parent 07882b5460
commit 803b5d8aa4

View File

@ -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;