From 5dbb2ce669441d4f00b17b15cb2ff12c3f9e5570 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 14 Aug 2013 07:53:33 +0000 Subject: [PATCH] Fix uninit variable in fix#516. git-svn-id: file:///svn/unbound/trunk@2934 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ iterator/iter_utils.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 8bcdbae69..a911bad40 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +14 Aug 2013: Wouter + - Fix uninit variable in fix#516. + 8 Aug 2013: Wouter - Fix#516 dnssec lameness detection for answers that are improper. diff --git a/iterator/iter_utils.c b/iterator/iter_utils.c index a111f7f52..e895b2233 100644 --- a/iterator/iter_utils.c +++ b/iterator/iter_utils.c @@ -225,7 +225,7 @@ iter_filter_unsuitable(struct iter_env* iter_env, struct module_env* env, } /* no server information present */ if(a->dnsseclame) - return rtt+USEFUL_SERVER_TOP_TIMEOUT*2; /* nonpref */ + return UNKNOWN_SERVER_NICENESS+USEFUL_SERVER_TOP_TIMEOUT*2; /* nonpref */ else if(a->lame) return USEFUL_SERVER_TOP_TIMEOUT+1+UNKNOWN_SERVER_NICENESS; /* nonpref */ return UNKNOWN_SERVER_NICENESS;