Commit f6258b6c authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9458 fix connection_init failure reset

parent 1c542a4d
......@@ -553,8 +553,15 @@ Connection * connection_init(
BER_BVZERO( &c->c_peer_name );
ber_sockbuf_free( c->c_sb );
c->c_sb = NULL;
c->c_sb = ber_sockbuf_alloc( );
{
ber_len_t max = sockbuf_max_incoming;
ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &max );
}
c->c_sd = AC_SOCKET_INVALID;
c->c_conn_state = SLAP_C_INVALID;
c->c_struct_state = SLAP_C_UNUSED;
ldap_pvt_thread_mutex_unlock( &c->c_mutex );
return NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment