Skip to content
Snippets Groups Projects
Commit 3e2cf8ca authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8585 Fail ldap_result if handle is already bad

parent b19a3ec4
No related branches found
No related tags found
Loading
...@@ -113,6 +113,9 @@ ldap_result( ...@@ -113,6 +113,9 @@ ldap_result(
Debug( LDAP_DEBUG_TRACE, "ldap_result ld %p msgid %d\n", (void *)ld, msgid, 0 ); 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 ); LDAP_MUTEX_LOCK( &ld->ld_res_mutex );
rc = wait4msg( ld, msgid, all, timeout, result ); rc = wait4msg( ld, msgid, all, timeout, result );
LDAP_MUTEX_UNLOCK( &ld->ld_res_mutex ); LDAP_MUTEX_UNLOCK( &ld->ld_res_mutex );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment