From fd52d607b0a89ae27522b1c5e5c51615431396b0 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 9 May 2005 09:32:44 +0000 Subject: [PATCH] don't compare freed pointers (no harm) --- servers/slapd/overlays/rwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index c4f827ac4f..4ff18d6573 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -73,14 +73,14 @@ rwm_op_dn_massage( Operation *op, SlapReply *rs, void *cookie ) return LDAP_SUCCESS; } - op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); - op->o_req_ndn = ndn; if ( op->o_req_dn.bv_val != op->o_req_ndn.bv_val ) { op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx ); op->o_req_dn = dn; } else { op->o_req_dn = ndn; } + op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); + op->o_req_ndn = ndn; return LDAP_SUCCESS; } -- 2.39.5