mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
ITS#7527 add missing error checks for corrupt index
This commit is contained in:
parent
c6a4982793
commit
f827aa683e
1 changed files with 8 additions and 0 deletions
|
|
@ -505,9 +505,17 @@ mdb_idl_insert_keys(
|
|||
if ( id < lo || id > hi ) {
|
||||
/* position on lo */
|
||||
rc = mdb_cursor_get( cursor, &key, &data, MDB_NEXT_DUP );
|
||||
if ( rc != 0 ) {
|
||||
err = "c_get lo";
|
||||
goto fail;
|
||||
}
|
||||
if ( id > hi ) {
|
||||
/* position on hi */
|
||||
rc = mdb_cursor_get( cursor, &key, &data, MDB_NEXT_DUP );
|
||||
if ( rc != 0 ) {
|
||||
err = "c_get hi";
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
data.mv_size = sizeof(ID);
|
||||
data.mv_data = &id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue