From: Mark Andrews Date: Wed, 5 Feb 2020 04:47:09 +0000 (+1100) Subject: dstkey is no longer used X-Git-Tag: v9.16.0~29^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331b74d6bf62726376e0f6c2603210a39b8e29ed;p=thirdparty%2Fbind9.git dstkey is no longer used --- diff --git a/lib/dns/client.c b/lib/dns/client.c index 34e65bd066c..757fb42136d 100644 --- a/lib/dns/client.c +++ b/lib/dns/client.c @@ -1489,7 +1489,6 @@ dns_client_addtrustedkey(dns_client_t *client, dns_rdataclass_t rdclass, { isc_result_t result; dns_view_t *view = NULL; - dst_key_t *dstkey = NULL; dns_keytable_t *secroots = NULL; dns_name_t *name = NULL; char dsbuf[DNS_DS_BUFFERSIZE]; @@ -1534,9 +1533,6 @@ dns_client_addtrustedkey(dns_client_t *client, dns_rdataclass_t rdclass, CHECK(dns_keytable_add(secroots, false, false, name, &ds)); cleanup: - if (dstkey != NULL) { - dst_key_free(&dstkey); - } if (view != NULL) { dns_view_detach(&view); }