mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
ITS#8997 - Fix segfault by setting return code value
Fix case with back-ldap where an entry was returned but didn't match the filter being applied by setting the return code value before dropping to cleanup.
This commit is contained in:
parent
be55ce8087
commit
85ccf7bbac
1 changed files with 1 additions and 0 deletions
|
|
@ -1006,6 +1006,7 @@ retry:
|
|||
e = ldap_first_entry( lc->lc_ld, result );
|
||||
if ( e == NULL ) {
|
||||
/* the entry exists, but it doesn't match the filter? */
|
||||
rc = LDAP_NO_RESULTS_RETURNED;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue