From: Howard Chu Date: Fri, 16 Jan 2009 21:28:46 +0000 (+0000) Subject: Client connection might get closed implicitly X-Git-Tag: ACLCHECK_0~1006 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4167862c37788f48bc97de3530a73fc85db634b;p=openldap Client connection might get closed implicitly --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 3169e1018e..c11c67e648 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1184,7 +1184,9 @@ void connection_client_stop( /* get (locked) connection */ c = connection_get( s ); - + + if ( !c ) return; + assert( c->c_conn_state == SLAP_C_CLIENT ); c->c_listener = NULL;