mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Fix prev commit
This commit is contained in:
parent
a5686f910d
commit
76e403af46
1 changed files with 2 additions and 1 deletions
|
|
@ -472,6 +472,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;
|
||||
ber_str2bv( dnsname, 0, 1, &c->c_peer_domain );
|
||||
|
|
@ -485,7 +486,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;
|
||||
|
|
@ -677,6 +677,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue