From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:24:37 +0000 (+0000) Subject: cleanup callback freeing X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~439 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=693697bfd945ba90a6040896fc6108408fe421ef;p=openldap cleanup callback freeing --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index feb75edee2..16d9b429fb 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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;