mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
unsolicited responses shouldn't necessarily end the connection
This commit is contained in:
parent
d132415e5f
commit
5ce13437de
@ -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 New Issue
Block a user