git-svn-id: file:///svn/unbound/trunk@537 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-08-21 13:27:04 +00:00
parent 272096d611
commit 9c8fd98719
2 changed files with 3 additions and 2 deletions

View file

@ -4,6 +4,7 @@
- check cache security status and either send the query to be
validated, return the query to client, or send servfail to client.
Sets AD bit on validated replies.
- do not examine security status on an error reply in mesh_done.
20 August 2007: Wouter
- validate and positive validation, positive wildcard NSEC validation.

View file

@ -427,11 +427,11 @@ mesh_send_reply(struct mesh_state* m, int rcode, struct reply_info* rep,
struct timeval end_time;
int secure;
/* examine security status */
if(m->s.env->need_to_validate && !(r->qflags&BIT_CD) &&
if(m->s.env->need_to_validate && !(r->qflags&BIT_CD) && rep &&
rep->security <= sec_status_bogus) {
rcode = LDNS_RCODE_SERVFAIL;
}
if(rep->security == sec_status_secure)
if(rep && rep->security == sec_status_secure)
secure = 1;
else secure = 0;
/* send the reply */