break out after error

This commit is contained in:
Klas Lindfors
2015-03-17 15:00:54 +01:00
parent 340c898dcb
commit ad3c92f7d2
+1
View File
@@ -1239,6 +1239,7 @@ static void print_cert_info(ykpiv_state *state, enum enum_slot slot, const EVP_M
EVP_PKEY *key = X509_get_pubkey(x509);
if(!key) {
fprintf(output, "Parse error.\n");
goto cert_out;
}
fprintf(output, "\n\tAlgorithm:\t");
type = EVP_PKEY_type(key->type);