Correctly add the label to a pkcs15 data object
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1487 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
fac4bd6008
commit
509119ac3b
|
@ -1069,8 +1069,8 @@ sc_pkcs15init_store_data_object(struct sc_pkcs15_card *p15card,
|
|||
|
||||
data_object_info = (struct sc_pkcs15_data_info *) calloc(1, sizeof(*data_object_info));
|
||||
data_object_info->id = args->id;
|
||||
if (args->app_label != NULL)
|
||||
strncpy(data_object_info->app_label, args->app_label,
|
||||
if (label != NULL)
|
||||
strncpy(data_object_info->app_label, label,
|
||||
sizeof(data_object_info->app_label) - 1);
|
||||
data_object_info->app_oid = args->app_oid;
|
||||
|
||||
|
|
Loading…
Reference in New Issue