From: Aaron Thompson Date: Mon, 30 Mar 2020 00:20:21 +0000 (+0000) Subject: Remove unreachable label in pkcs11eddsa_link.c. X-Git-Tag: v9.17.2~134^2~11 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b4a7bfd55e6d7579194816be78800a19e4f58cd6;p=thirdparty%2Fbind9.git Remove unreachable label in pkcs11eddsa_link.c. Missed in ae83801e2b8e87260dea59a445f3c41bb5eb9944. --- diff --git a/lib/dns/pkcs11eddsa_link.c b/lib/dns/pkcs11eddsa_link.c index e725319b159..3f2a266e6ee 100644 --- a/lib/dns/pkcs11eddsa_link.c +++ b/lib/dns/pkcs11eddsa_link.c @@ -677,24 +677,8 @@ pkcs11eddsa_fromdns(dst_key_t *key, isc_buffer_t *data) { isc_buffer_forward(data, len); key->keydata.pkey = ec; key->key_size = len; - return (ISC_R_SUCCESS); -nomemory: - for (attr = pk11_attribute_first(ec); attr != NULL; - attr = pk11_attribute_next(ec, attr)) - switch (attr->type) { - case CKA_EC_PARAMS: - case CKA_EC_POINT: - FREECURVE(); - break; - } - if (ec->repr != NULL) { - memset(ec->repr, 0, ec->attrcnt * sizeof(*attr)); - isc_mem_put(key->mctx, ec->repr, ec->attrcnt * sizeof(*attr)); - } - memset(ec, 0, sizeof(*ec)); - isc_mem_put(key->mctx, ec, sizeof(*ec)); - return (ISC_R_NOMEMORY); + return (ISC_R_SUCCESS); } static isc_result_t