]> git.sur5r.net Git - openldap/commitdiff
reset request DN after free; confuses global overlays
authorPierangelo Masarati <ando@openldap.org>
Thu, 10 Nov 2005 03:42:44 +0000 (03:42 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 10 Nov 2005 03:42:44 +0000 (03:42 +0000)
servers/slapd/passwd.c

index fee10439dd2f1af387073e6fef9010b262c5f333..0cd0ec74b8058dd23f4d9b9b5954ba6bb7185044 100644 (file)
@@ -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;