PKCS15-OpenPGP: Change the way emu_init return in error case.

This commit is contained in:
Nguyễn Hồng Quân 2012-06-04 09:54:40 +07:00 committed by Viktor Tarasov
parent ed0e2be305
commit 8261490ec1
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
r = sc_pkcs15emu_add_x509_cert(p15card, &cert_obj, &cert_info);
if (r < 0)
return SC_ERROR_INTERNAL;
goto failed;
}
return 0;