mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 12:09:35 -05:00
ITS#8655 fix double free on paged search with pagesize 0
Fixes a double free when a search includes the Paged Results control with a page size of 0 and the search base matches the filter.
This commit is contained in:
parent
431c4af526
commit
0cee1ffb60
1 changed files with 2 additions and 1 deletions
|
|
@ -1066,7 +1066,8 @@ notfound:
|
|||
/* check size limit */
|
||||
if ( get_pagedresults(op) > SLAP_CONTROL_IGNORED ) {
|
||||
if ( rs->sr_nentries >= ((PagedResultsState *)op->o_pagedresults_state)->ps_size ) {
|
||||
mdb_entry_return( op, e );
|
||||
if (e != base)
|
||||
mdb_entry_return( op, e );
|
||||
e = NULL;
|
||||
send_paged_response( op, rs, &lastid, tentries );
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Reference in a new issue