mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fixup.
git-svn-id: file:///svn/unbound/trunk@537 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
272096d611
commit
9c8fd98719
2 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue