Certain TKEY processing failure modes could

reference an uninitialized variable, causing the
server to crash. [RT #750]
This commit is contained in:
Bob Halley 2001-01-30 19:18:19 +00:00
parent aac319b506
commit 7427490a67
2 changed files with 7 additions and 3 deletions

View file

@ -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]

View file

@ -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 <config.h>
@ -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);