Commit 5ce13437 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

unsolicited responses shouldn't necessarily end the connection

parent d132415e
...@@ -878,7 +878,11 @@ nextresp2: ...@@ -878,7 +878,11 @@ nextresp2:
lr = NULL; 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 #ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_lock( &ld->ld_req_mutex ); ldap_pvt_thread_mutex_lock( &ld->ld_req_mutex );
#endif #endif
...@@ -959,7 +963,7 @@ nextresp2: ...@@ -959,7 +963,7 @@ nextresp2:
#ifdef LDAP_R_COMPILE #ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_unlock( &ld->ld_req_mutex ); ldap_pvt_thread_mutex_unlock( &ld->ld_req_mutex );
#endif #endif
*lcp = NULL; lc = *lcp = NULL;
} }
/* need to return -1, because otherwise /* need to return -1, because otherwise
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment