init a variable to address https://kb.isc.org/article/AA-01272
authorjsg <jsg@openbsd.org>
Thu, 18 Aug 2016 06:36:02 +0000 (06:36 +0000)
committerjsg <jsg@openbsd.org>
Thu, 18 Aug 2016 06:36:02 +0000 (06:36 +0000)
Most of bind got removed and this function is not called
by any of the remaining parts.

ok deraadt@ a long time ago.

usr.sbin/bind/lib/dns/tkey.c

index 5eebcc3..ba17340 100644 (file)
@@ -562,6 +562,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)