- Fix testpkts.c, check if DO bit is set, not only if there is an OPT record.

git-svn-id: file:///svn/unbound/trunk@4031 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Ralph Dolmans 2017-02-28 13:11:05 +00:00
parent 689fdc1d0b
commit 6137f1b0b2
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
28 February 2017: Ralph
- Fix testpkts.c, check if DO bit is set, not only if there is an OPT
record.
28 February 2017: Wouter
- For #1227: if we have sha256, set the cipher list to have no
known vulns.

View file

@ -802,8 +802,8 @@ get_do_flag(uint8_t* pkt, size_t len)
uint16_t edns_bits;
uint8_t* walk = pkt;
size_t walk_len = len;
if(pkt_find_edns_opt(&walk, &walk_len)) {
return 1;
if(!pkt_find_edns_opt(&walk, &walk_len)) {
return 0;
}
if(walk_len < 6)
return 0; /* malformed */