Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
slapd: avoid tsan-trap in connection_client_stop().
Browse files Browse the repository at this point in the history
Change-Id: Ie7d3701fe25cf607c5c1711f6a36855feef91070
  • Loading branch information
erthink committed Dec 14, 2015
1 parent e96cb1b commit 5108f0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions servers/slapd/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,11 @@ void connection_client_stop(
ber_len_t max = sockbuf_max_incoming;
ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &max );
}
ldap_pvt_thread_mutex_lock( &connections_mutex );
c->c_conn_state = SLAP_C_INVALID;
c->c_struct_state = SLAP_C_UNUSED;
slapd_remove( s, sb, 0, 1, 0 );
ldap_pvt_thread_mutex_unlock( &connections_mutex );

connection_return( c );
}
Expand Down

0 comments on commit 5108f0e

Please sign in to comment.