From b22e1d42732f673227f24f97cfe662a7a49b7566 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 13 Sep 2007 15:11:25 +0000 Subject: [PATCH] Use nsec3s_seen flag for speedup. git-svn-id: file:///svn/unbound/trunk@612 be551aaa-1e26-0410-a405-d3ace91eadb9 --- validator/validator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/validator.c b/validator/validator.c index a334b491b..00354177d 100644 --- a/validator/validator.c +++ b/validator/validator.c @@ -642,7 +642,7 @@ validate_nameerror_response(struct module_env* env, struct val_env* ve, nsec3s_seen = 1; } - if(!has_valid_nsec || !has_valid_wnsec) { + if((!has_valid_nsec || !has_valid_wnsec) && nsec3s_seen) { /* use NSEC3 proof, both answer and auth rrsets, in case * NSEC3s end up in the answer (due to qtype=NSEC3 or so) */ chase_reply->security = nsec3_prove_nameerror(env, ve, -- 2.47.2