ITS#8585 Fail ldap_result if handle is already bad

This commit is contained in:
Howard Chu 2017-02-07 12:56:35 +00:00 committed by Howard Chu
parent 45018fef17
commit 9773f43b11

View file

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