Print an error if sc_pkcs15init_bind() fails
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2381 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
2c856aa71f
commit
2585106e3c
|
@ -338,8 +338,10 @@ main(int argc, char **argv)
|
|||
|
||||
/* Bind the card-specific operations and load the profile */
|
||||
if ((r = sc_pkcs15init_bind(card, opt_profile,
|
||||
opt_card_profile, &profile)) < 0)
|
||||
opt_card_profile, &profile)) < 0) {
|
||||
printf("Couldn't bind to the card: %s\n", sc_strerror(r));
|
||||
return 1;
|
||||
}
|
||||
|
||||
set_secrets(profile);
|
||||
|
||||
|
|
Loading…
Reference in New Issue