pkcs15-init tool: when importing bunch of certificates, break after the first error

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3938 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-01-25 15:53:29 +00:00
parent 97d5b3e6e7
commit 4662812e93
1 changed files with 1 additions and 1 deletions

View File

@ -814,7 +814,7 @@ do_store_private_key(struct sc_profile *profile)
/* If there are certificate as well (e.g. when reading the
* private key from a PKCS #12 file) store them, too.
*/
for (i = 0; i < ncerts; i++) {
for (i = 0; i < ncerts && r >= 0; i++) {
struct sc_pkcs15init_certargs cargs;
char namebuf[SC_PKCS15_MAX_LABEL_SIZE-1];