From 3423399f98359b24da64bfca9d83b55f91990adc Mon Sep 17 00:00:00 2001 From: Praneeth Sarode Date: Fri, 25 Jul 2025 23:14:29 +0530 Subject: [PATCH] fix(pki): remove redundant key type_c assignment in pki_import_pubkey_buffer We already assign the correct key type_c using ssh_key_type_to_char before this point. Signed-off-by: Praneeth Sarode Reviewed-by: Jakub Jelen --- src/pki.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pki.c b/src/pki.c index e2224bfd..9a4f87d2 100644 --- a/src/pki.c +++ b/src/pki.c @@ -1497,11 +1497,6 @@ static int pki_import_pubkey_buffer(ssh_buffer buffer, goto fail; } - /* Update key type */ - if (type == SSH_KEYTYPE_ECDSA) { - key->type_c = ssh_pki_key_ecdsa_name(key); - } - /* Unpack SK specific parameters */ if (type == SSH_KEYTYPE_SK_ECDSA) { ssh_string application = ssh_buffer_get_ssh_string(buffer);