Reset pin on simple bind

This commit is contained in:
Ondřej Kuzník 2018-01-17 15:30:24 +00:00 committed by Ondřej Kuzník
parent cbc0ec04c0
commit 205db0bf94

View file

@ -322,6 +322,9 @@ request_bind( LloadConnection *client, LloadOperation *op )
CONNECTION_LOCK(upstream); CONNECTION_LOCK(upstream);
if ( pin ) { if ( pin ) {
tavl_delete( &upstream->c_ops, op, operation_upstream_cmp ); tavl_delete( &upstream->c_ops, op, operation_upstream_cmp );
if ( tag == LDAP_AUTH_SIMPLE ) {
pin = op->o_pin_id = 0;
}
} else if ( tag == LDAP_AUTH_SASL && !op->o_pin_id ) { } else if ( tag == LDAP_AUTH_SASL && !op->o_pin_id ) {
ldap_pvt_thread_mutex_lock( &lload_pin_mutex ); ldap_pvt_thread_mutex_lock( &lload_pin_mutex );
pin = op->o_pin_id = lload_next_pin++; pin = op->o_pin_id = lload_next_pin++;