fixed possible bad memory access

This commit is contained in:
Frank Morgner 2017-10-30 16:42:02 +01:00
parent 3ca6c4b04a
commit 17132b04c7
1 changed files with 1 additions and 0 deletions

View File

@ -1433,6 +1433,7 @@ awp_update_df_create_prvkey(struct sc_pkcs15_card *p15card, struct sc_profile *p
SC_FUNC_CALLED(ctx, SC_LOG_DEBUG_NORMAL);
memset(&ikey, 0, sizeof(ikey));
memset(&icert, 0, sizeof(icert));
key_info = (struct sc_pkcs15_prkey_info *)key_obj->data;
der = key_obj->content;