From c716477d2e9f89e8faf00e56f671e15f7f3412b0 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 5 Feb 2001 20:29:56 +0000 Subject: [PATCH] don't free the structure twice (thanks, Andreas) --- lib/dns/tkey.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c index c5dd5051a5..915b9c44d6 100644 --- a/lib/dns/tkey.c +++ b/lib/dns/tkey.c @@ -16,7 +16,7 @@ */ /* - * $Id: tkey.c,v 1.65 2001/02/05 19:50:42 bwelling Exp $ + * $Id: tkey.c,v 1.66 2001/02/05 20:29:56 bwelling Exp $ */ #include @@ -735,8 +735,10 @@ dns_tkey_processquery(dns_message_t *msg, dns_tkeyctx_t *tctx, } failure_with_tkey: - if (freetkeyin) + if (freetkeyin) { dns_rdata_freestruct(&tkeyin); + freetkeyin = ISC_FALSE; + } RETERR(dns_message_gettemprdata(msg, &rdata)); RETERR(isc_buffer_allocate(msg->mctx, &dynbuf, 384));