mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
ITS#8585 Fail ldap_result if handle is already bad
This commit is contained in:
parent
45018fef17
commit
9773f43b11
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ ldap_result(
|
|||
|
||||
Debug( LDAP_DEBUG_TRACE, "ldap_result ld %p msgid %d\n", (void *)ld, msgid, 0 );
|
||||
|
||||
if (ld->ld_errno == LDAP_LOCAL_ERROR || ld->ld_errno == LDAP_SERVER_DOWN)
|
||||
return -1;
|
||||
|
||||
LDAP_MUTEX_LOCK( &ld->ld_res_mutex );
|
||||
rc = wait4msg( ld, msgid, all, timeout, result );
|
||||
LDAP_MUTEX_UNLOCK( &ld->ld_res_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue