mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#6453 cleanup on LDAP_TIMEOUT
This commit is contained in:
parent
35fa297acd
commit
1bb648841b
1 changed files with 5 additions and 0 deletions
|
|
@ -182,6 +182,11 @@ ldap_pvt_search_s(
|
|||
|
||||
if( rc <= 0 ) {
|
||||
/* error(-1) or timeout(0) */
|
||||
if ( ld->ld_errno == LDAP_TIMEOUT ) {
|
||||
/* cleanup request */
|
||||
(void) ldap_abandon( ld, msgid );
|
||||
ld->ld_errno = LDAP_TIMEOUT;
|
||||
}
|
||||
return( ld->ld_errno );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue