From dbf69a6ff56b650f4919017144984de008668851 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 1 Nov 2005 15:44:51 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/result.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 0b33bd7f08..a0feb62b87 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -300,8 +300,7 @@ send_ldap_response( } if ( op->o_callback ) { - slap_callback *sc = op->o_callback, **sc_prev = &op->o_callback, - *sc_next; + slap_callback *sc = op->o_callback, **sc_prev = &sc, *sc_next; rc = SLAP_CB_CONTINUE; for ( sc_next = op->o_callback; sc_next; op->o_callback = sc_next) { @@ -455,8 +454,7 @@ cleanup:; clean2:; if ( op->o_callback ) { - slap_callback *sc = op->o_callback, **sc_prev = &op->o_callback, - *sc_next; + slap_callback *sc = op->o_callback, **sc_prev = &sc, *sc_next; for ( sc_next = op->o_callback; sc_next; op->o_callback = sc_next) { sc_next = op->o_callback->sc_next; @@ -700,8 +698,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs ) } if ( op->o_callback ) { - slap_callback *sc = op->o_callback, **sc_prev = &op->o_callback, - *sc_next; + slap_callback *sc = op->o_callback, **sc_prev = &sc, *sc_next; rc = SLAP_CB_CONTINUE; for ( sc_next = op->o_callback; sc_next; op->o_callback = sc_next ) @@ -1147,8 +1144,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs ) error_return:; if ( op->o_callback ) { - slap_callback *sc = op->o_callback, **sc_prev = &op->o_callback, - *sc_next; + slap_callback *sc = op->o_callback, **sc_prev = &sc, *sc_next; for ( sc_next = op->o_callback; sc_next; op->o_callback = sc_next) { sc_next = op->o_callback->sc_next; @@ -1205,8 +1201,7 @@ slap_send_search_reference( Operation *op, SlapReply *rs ) rs->sr_type = REP_SEARCHREF; if ( op->o_callback ) { - slap_callback *sc = op->o_callback, **sc_prev = &op->o_callback, - *sc_next; + slap_callback *sc = op->o_callback, **sc_prev = &sc, *sc_next; rc = SLAP_CB_CONTINUE; for ( sc_next = op->o_callback; sc_next; op->o_callback = sc_next) { @@ -1350,8 +1345,7 @@ slap_send_search_reference( Operation *op, SlapReply *rs ) rel: if ( op->o_callback ) { - slap_callback *sc = op->o_callback, **sc_prev = &op->o_callback, - *sc_next; + slap_callback *sc = op->o_callback, **sc_prev = &sc, *sc_next; for ( sc_next = op->o_callback; sc_next; op->o_callback = sc_next) { sc_next = op->o_callback->sc_next; -- 2.39.5