Don't ignore the profile_option -- remark from Victor Tarasov
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2382 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
2585106e3c
commit
df232cfe67
|
@ -326,6 +326,10 @@ sc_pkcs15init_bind(sc_card_t *card, const char *name,
|
|||
*/
|
||||
if (!get_profile_from_config(card, card_profile, sizeof(card_profile)))
|
||||
strcpy(card_profile, driver);
|
||||
if (profile_option != NULL) {
|
||||
strncpy(card_profile, profile_option, sizeof(card_profile));
|
||||
card_profile[sizeof(card_profile) - 1] = '\0';
|
||||
}
|
||||
|
||||
if ((r = sc_profile_load(profile, profile->name)) < 0
|
||||
|| (r = sc_profile_load(profile, card_profile)) < 0
|
||||
|
|
Loading…
Reference in New Issue