diff --git a/lib/dns/opensslecdsa_link.c b/lib/dns/opensslecdsa_link.c index f198599e2f..bcf92b6ca4 100644 --- a/lib/dns/opensslecdsa_link.c +++ b/lib/dns/opensslecdsa_link.c @@ -539,7 +539,7 @@ opensslecdsa_tofile(const dst_key_t *key, const char *directory) { } if (key->label != NULL) { - priv.elements[i].tag = TAG_RSA_LABEL; + priv.elements[i].tag = TAG_ECDSA_LABEL; priv.elements[i].length = (unsigned short)strlen(key->label) + 1; priv.elements[i].data = (unsigned char *)key->label;