]> git.sur5r.net Git - openldap/commitdiff
cleanup callback freeing
authorPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:24:37 +0000 (16:24 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:24:37 +0000 (16:24 +0000)
servers/slapd/connection.c

index feb75edee2aa2a42105372a1d7aa3196000a8939..16d9b429fb0fd617e2d31258944e8d986c8c11e9 100644 (file)
@@ -1998,7 +1998,6 @@ connection_init_log_prefix( Operation *op )
 static int connection_bind_cb( Operation *op, SlapReply *rs )
 {
        slap_callback *cb = op->o_callback;
-       op->o_callback = cb->sc_next;
 
        ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
        op->o_conn->c_conn_state = SLAP_C_ACTIVE;
@@ -2052,7 +2051,7 @@ static int connection_bind_cb( Operation *op, SlapReply *rs )
        }
        ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
 
-       ch_free( cb );
+       ch_free( op->o_callback );
        op->o_callback = NULL;
 
        return SLAP_CB_CONTINUE;