diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index df5f36ce1e..3c9c0caf42 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -520,7 +520,12 @@ 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; ldap_pvt_thread_mutex_unlock( &c->c_mutex );