From: Pierangelo Masarati Date: Thu, 10 Nov 2005 03:42:44 +0000 (+0000) Subject: reset request DN after free; confuses global overlays X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0e1f737774536220a9534dc4a4527c3d9b7f7fcc;p=openldap reset request DN after free; confuses global overlays --- 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;