From 86c0f733a40a989fd25e1f8b585097268fe2ab19 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 18 Nov 2003 22:55:53 +0000 Subject: [PATCH] Cleanup prev commit, assert if writewaiter != 0 in init --- servers/slapd/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 028ee4aa4f..7ab23c92bc 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -502,6 +502,7 @@ long connection_init( assert( c->c_sasl_extra == NULL ); assert( c->c_sasl_bindop == NULL ); assert( c->c_currentber == NULL ); + assert( c->c_writewaiter == 0); c->c_listener = listener; @@ -525,7 +526,6 @@ long connection_init( c->c_n_get = 0; c->c_n_read = 0; c->c_n_write = 0; - c->c_writewaiter = 0; /* set to zero until bind, implies LDAP_VERSION3 */ c->c_protocol = 0; @@ -708,6 +708,7 @@ 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; -- 2.39.5