From 6137f1b0b27ca9332d5b8dfc7e70a831e23053de Mon Sep 17 00:00:00 2001 From: Ralph Dolmans Date: Tue, 28 Feb 2017 13:11:05 +0000 Subject: [PATCH] - 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 --- doc/Changelog | 4 ++++ testcode/testpkts.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 70f1fe8ee..3c1801c29 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/testcode/testpkts.c b/testcode/testpkts.c index c9ad9d069..163c51d50 100644 --- a/testcode/testpkts.c +++ b/testcode/testpkts.c @@ -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 */