]> git.sur5r.net Git - openldap/commitdiff
Client connection might get closed implicitly
authorHoward Chu <hyc@openldap.org>
Fri, 16 Jan 2009 21:28:46 +0000 (21:28 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 16 Jan 2009 21:28:46 +0000 (21:28 +0000)
servers/slapd/connection.c

index 3169e1018e939ffa416f8430b53a641f5a830566..c11c67e6485b54755ec9d8258098cb5b9d428e3d 100644 (file)
@@ -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;