ITS#6453 cleanup on LDAP_TIMEOUT

This commit is contained in:
Howard Chu 2010-12-23 23:18:41 +00:00
parent 35fa297acd
commit 1bb648841b

View file

@ -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 );
}