From 0e1f737774536220a9534dc4a4527c3d9b7f7fcc Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 10 Nov 2005 03:42:44 +0000 Subject: [PATCH] reset request DN after free; confuses global overlays --- servers/slapd/passwd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index fee10439dd..0cd0ec74b8 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -293,9 +293,11 @@ old_good: error_return:; if ( !BER_BVISNULL( &op->o_req_dn ) ) { op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx ); + BER_BVZERO( &op->o_req_dn ); } if ( !BER_BVISNULL( &op->o_req_ndn ) ) { op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); + BER_BVZERO( &op->o_req_ndn ); } return rc; -- 2.39.5