From: Mark Andrews Date: Tue, 14 Jul 2015 04:48:42 +0000 (+1000) Subject: 4165. [bug] An failure to reset a value to NULL in tkey.c could X-Git-Tag: v9.9.8b1~24 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5dc3a1c3d3bf733b94fe213d40da6ea766646ece;p=thirdparty%2Fbind9.git 4165. [bug] An failure to reset a value to NULL in tkey.c could result in an assertion failure. (CVE-2015-5477) [RT #40046] (cherry picked from commit dbb064aa7972ef918d9a235b713108a4846cbb62) --- diff --git a/CHANGES b/CHANGES index 8f2aa3e19c3..fd9140107a0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +4165. [bug] An failure to reset a value to NULL in tkey.c could + result in an assertion failure. (CVE-2015-5477) + [RT #40046] + 4164. [bug] Don't rename slave files and journals on out of memory. [RT #40033] diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c index c442914685a..b8eb83a9be9 100644 --- a/lib/dns/tkey.c +++ b/lib/dns/tkey.c @@ -649,6 +649,7 @@ dns_tkey_processquery(dns_message_t *msg, dns_tkeyctx_t *tctx, * Try the answer section, since that's where Win2000 * puts it. */ + name = NULL; if (dns_message_findname(msg, DNS_SECTION_ANSWER, qname, dns_rdatatype_tkey, 0, &name, &tkeyset) != ISC_R_SUCCESS) {