diff --git a/CHANGES b/CHANGES index a34a0ea2b6..86365932e9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ + 717. [bug] Certain TKEY processing failure modes could + reference an uninitialized variable, causing the + server to crash. [RT #750] + 716. [bug] The first line of a $INCLUDE master file was lost if a origin was specified. [RT #744] diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c index 9d26023af9..f3e4fee3df 100644 --- a/lib/dns/tkey.c +++ b/lib/dns/tkey.c @@ -16,7 +16,7 @@ */ /* - * $Id: tkey.c,v 1.63 2001/01/12 00:56:44 bwelling Exp $ + * $Id: tkey.c,v 1.64 2001/01/30 19:17:31 halley Exp $ */ #include @@ -544,6 +544,8 @@ dns_tkey_processquery(dns_message_t *msg, dns_tkeyctx_t *tctx, REQUIRE(tctx != NULL); REQUIRE(ring != NULL); + ISC_LIST_INIT(namelist); + /* * Need to do this to determine if this should be freed later. */ @@ -614,8 +616,6 @@ dns_tkey_processquery(dns_message_t *msg, dns_tkeyctx_t *tctx, } else signer = &tsigner; - ISC_LIST_INIT(namelist); - tkeyout.common.rdclass = tkeyin.common.rdclass; tkeyout.common.rdtype = tkeyin.common.rdtype; ISC_LINK_INIT(&tkeyout.common, link);