mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
More for multival attrs
Fix id2entry_delete when deleting last multival entry in DB
This commit is contained in:
parent
3d5601e0ba
commit
5e6aadd779
@ -407,7 +407,12 @@ int mdb_id2entry_delete(
|
||||
rc = mdb_cursor_del( mvc, MDB_NODUPDATA );
|
||||
if (rc)
|
||||
return rc;
|
||||
mdb_cursor_get( mvc, &key, NULL, MDB_GET_CURRENT );
|
||||
rc = mdb_cursor_get( mvc, &key, NULL, MDB_GET_CURRENT );
|
||||
if (rc) {
|
||||
if (rc == MDB_NOTFOUND)
|
||||
rc = MDB_SUCCESS;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user