From: Howard Chu Date: Mon, 29 Aug 2005 23:05:32 +0000 (+0000) Subject: ITS#3983 fix connection_client_stop, must reset sockbuf X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~537 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3fc2e1388ac22dd26d46828fbcfc5a2d1851837a;p=openldap ITS#3983 fix connection_client_stop, must reset sockbuf --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 217ba8da08..2f04844bec 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1158,6 +1158,13 @@ void connection_client_stop( c->c_conn_state = SLAP_C_INVALID; c->c_struct_state = SLAP_C_UNUSED; c->c_close_reason = "?"; /* should never be needed */ + ber_sockbuf_free( c->c_sb ); + 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 ); + } + connection_return( c ); slapd_remove( s, 0, 1 ); }