oberthur: set to '0' memory of temp path

This commit is contained in:
Viktor Tarasov 2016-04-27 20:09:29 +02:00
parent 00b8416ba3
commit 6d4a4dfae0
1 changed files with 1 additions and 1 deletions

View File

@ -988,11 +988,11 @@ auth_create_file(struct sc_card *card, struct sc_file *file)
struct sc_path tmp_path;
struct sc_file *df_file = NULL;
memset(&tmp_path, 0, sizeof(struct sc_path));
tmp_path.type = SC_PATH_TYPE_FILE_ID;
tmp_path.value[0] = file->id >> 8;
tmp_path.value[1] = file->id & 0xFF;
tmp_path.len = 2;
rv = auth_select_file(card, &tmp_path, &df_file);
sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "rv %i", rv);
}