]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
dstkey is no longer used
authorMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 04:47:09 +0000 (15:47 +1100)
committerMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 07:37:17 +0000 (18:37 +1100)
lib/dns/client.c

index 34e65bd066c9f546c64bfd1c56823fcb4e4be8e9..757fb42136d87d7b2e374889fd6814914a84cab6 100644 (file)
@@ -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);
        }