mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 23:51:21 -05:00
unsolicited responses shouldn't necessarily end the connection
This commit is contained in:
parent
d132415e5f
commit
5ce13437de
1 changed files with 6 additions and 2 deletions
|
|
@ -878,7 +878,11 @@ nextresp2:
|
|||
lr = NULL;
|
||||
}
|
||||
|
||||
if ( lc != NULL ) {
|
||||
/*
|
||||
* RF 4511 unsolicited (id == 0) responses
|
||||
* shouldn't necessarily end the connection
|
||||
*/
|
||||
if ( lc != NULL && id != 0 ) {
|
||||
#ifdef LDAP_R_COMPILE
|
||||
ldap_pvt_thread_mutex_lock( &ld->ld_req_mutex );
|
||||
#endif
|
||||
|
|
@ -959,7 +963,7 @@ nextresp2:
|
|||
#ifdef LDAP_R_COMPILE
|
||||
ldap_pvt_thread_mutex_unlock( &ld->ld_req_mutex );
|
||||
#endif
|
||||
*lcp = NULL;
|
||||
lc = *lcp = NULL;
|
||||
}
|
||||
|
||||
/* need to return -1, because otherwise
|
||||
|
|
|
|||
Loading…
Reference in a new issue