]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unreachable label in pkcs11eddsa_link.c.
authorAaron Thompson <dev@aaront.org>
Mon, 30 Mar 2020 00:20:21 +0000 (00:20 +0000)
committerOndřej Surý <ondrej@isc.org>
Mon, 20 Apr 2020 09:40:41 +0000 (11:40 +0200)
Missed in ae83801e2b8e87260dea59a445f3c41bb5eb9944.

lib/dns/pkcs11eddsa_link.c

index e725319b159f88ff9b45ee159ec915c1f6da0b93..3f2a266e6ee72ee227f99563a51b6cc4ec9bcf06 100644 (file)
@@ -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