From: Pierangelo Masarati Date: Tue, 30 Aug 2005 21:21:32 +0000 (+0000) Subject: fix previous commit X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~530 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6ff4357427ea5f82fb59a7828e98213399b018f2;p=openldap fix previous commit --- 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;