From 6ff4357427ea5f82fb59a7828e98213399b018f2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 30 Aug 2005 21:21:32 +0000 Subject: [PATCH] fix previous commit --- servers/slapd/back-meta/bind.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-meta/bind.c b/servers/slapd/back-meta/bind.c index 7defb3d424..6ad897ad2f 100644 --- a/servers/slapd/back-meta/bind.c +++ b/servers/slapd/back-meta/bind.c @@ -667,6 +667,7 @@ meta_back_op_result( rerr = LDAP_SUCCESS; char *rmsg = NULL; char *rmatch = NULL; + char *save_rmatch = NULL; void *rmatch_ctx = NULL; if ( candidate != META_TARGET_NONE ) { @@ -790,6 +791,8 @@ meta_back_op_result( rmatch_ctx = op->o_tmpmemctx; rmatch = pdn.bv_val; } + save_rmatch = rs->sr_matched; + rs->sr_matched = rmatch; } send_ldap_result( op, rs ); if ( rmsg != NULL ) { @@ -797,7 +800,7 @@ meta_back_op_result( } if ( rmatch != NULL ) { ber_memfree_x( rmatch, rmatch_ctx ); - rs->sr_matched = NULL; + rs->sr_matched = save_rmatch; } rs->sr_text = NULL; -- 2.39.5