From 9777dc21148eaba94326aa41d851d558d8869b0e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 18 Dec 2003 03:50:09 +0000 Subject: [PATCH] ITS#2883 initialize rc before running callbacks --- servers/slapd/result.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 1b8a9dda42..0d84cc0576 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -294,6 +294,7 @@ send_ldap_response( if (op->o_callback) { slap_callback *sc = op->o_callback; + rc = SLAP_CB_CONTINUE; for ( ; op->o_callback; ) { if ( op->o_callback->sc_response ) { rc = op->o_callback->sc_response( op, rs ); @@ -304,7 +305,7 @@ send_ldap_response( op->o_callback = sc; if ( rc != SLAP_CB_CONTINUE ) goto cleanup; } - + #ifdef LDAP_CONNECTIONLESS if (op->o_conn && op->o_conn->c_is_udp) ber = op->o_res_ber; @@ -719,6 +720,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs ) rs->sr_type = REP_SEARCH; if (op->o_callback) { slap_callback *sc = op->o_callback; + rc = SLAP_CB_CONTINUE; for ( ; op->o_callback; ) { if ( op->o_callback->sc_response ) { rc = op->o_callback->sc_response( op, rs ); @@ -1327,6 +1329,7 @@ slap_send_search_reference( Operation *op, SlapReply *rs ) rs->sr_type = REP_SEARCHREF; if (op->o_callback) { slap_callback *sc = op->o_callback; + rc = SLAP_CB_CONTINUE; for ( ; op->o_callback; ) { if ( op->o_callback->sc_response ) { rc = op->o_callback->sc_response( op, rs ); -- 2.39.5