mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
For previous, assert (writewaiter==0) in conn_destroy too.
This commit is contained in:
parent
21796e671a
commit
b179e05ea1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue