From: Howard Chu Date: Thu, 20 Nov 2003 00:54:46 +0000 (+0000) Subject: For previous, assert (writewaiter==0) in conn_destroy too. X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~425 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b179e05ea108e4b058ec9982bf25b92406da71c9;p=openldap For previous, assert (writewaiter==0) in conn_destroy too. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 7ab23c92bc..01c233bb35 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -651,6 +651,7 @@ connection_destroy( Connection *c ) assert( c->c_struct_state != SLAP_C_UNUSED ); assert( c->c_conn_state != SLAP_C_INVALID ); assert( LDAP_STAILQ_EMPTY(&c->c_ops) ); + assert( c->c_writewaiter == 0); /* only for stats (print -1 as "%lu" may give unexpected results ;) */ connid = c->c_connid; @@ -708,7 +709,6 @@ connection_destroy( Connection *c ) ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &max ); } - c->c_writewaiter = 0; c->c_conn_state = SLAP_C_INVALID; c->c_struct_state = SLAP_C_UNUSED;