mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Force off bit Z.
git-svn-id: file:///svn/unbound/trunk@2126 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
8360afa15f
commit
1bd8583d3f
2 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
1 June 2010: Wouter
|
||||
- Ignore Z flag in incoming messages too.
|
||||
|
||||
31 May 2010: Wouter
|
||||
- Fix AD flag handling, it could in some cases mistakenly copy the AD
|
||||
flag from upstream servers.
|
||||
|
|
|
|||
|
|
@ -717,7 +717,7 @@ scrub_message(ldns_buffer* pkt, struct msg_parse* msg,
|
|||
return 0;
|
||||
if( !(msg->flags&BIT_QR) )
|
||||
return 0;
|
||||
msg->flags &= ~(BIT_AD); /* force AD bit to be turned off */
|
||||
msg->flags &= ~(BIT_AD|BIT_Z); /* force off bit AD and Z */
|
||||
|
||||
/* make sure that a query is echoed back when NOERROR or NXDOMAIN */
|
||||
/* this is not required for basic operation but is a forgery
|
||||
|
|
|
|||
Loading…
Reference in a new issue