]> git.sur5r.net Git - openldap/commitdiff
For previous, assert (writewaiter==0) in conn_destroy too.
authorHoward Chu <hyc@openldap.org>
Thu, 20 Nov 2003 00:54:46 +0000 (00:54 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 20 Nov 2003 00:54:46 +0000 (00:54 +0000)
servers/slapd/connection.c

index 7ab23c92bc9f063f3691c8e3abaaf681f2a78d49..01c233bb353687c6447473a0ea8762835cbd90b5 100644 (file)
@@ -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;