mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#7473 fix b1a6f6980f
uninit'd size in dn2id_walk, bogus pagedresults
This commit is contained in:
parent
d235778c71
commit
a8352c03b3
@ -835,6 +835,7 @@ mdb_dn2id_walk(
|
||||
key.mv_data = &isc->scopes[n].mid;
|
||||
key.mv_size = sizeof(ID);
|
||||
data.mv_data = isc->nrdns[n].bv_val - 2;
|
||||
data.mv_size = 1; /* just needs to be non-zero, mdb_dup_compare doesn't care */
|
||||
mdb_cursor_get( isc->mc, &key, &data, MDB_GET_BOTH );
|
||||
continue;
|
||||
}
|
||||
|
@ -630,6 +630,7 @@ dn2entry_retry:
|
||||
}
|
||||
if ( id == (ID)ps->ps_cookie )
|
||||
id = mdb_idl_next( candidates, &cursor );
|
||||
nsubs = ncand; /* always bypass scope'd search */
|
||||
goto loop_begin;
|
||||
}
|
||||
if ( nsubs < ncand ) {
|
||||
|
Loading…
Reference in New Issue
Block a user