- Timestamp:
- 04/26/06 10:01:08 (3 years ago)
- Location:
- releases/opensc-0.11.0/src/pkcs15init
- Files:
-
- 2 modified
-
pkcs15-cflex.c (modified) (2 diffs)
-
pkcs15-gpk.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/opensc-0.11.0/src/pkcs15init/pkcs15-cflex.c
r2811 r2900 84 84 static int cflex_erase_card(struct sc_profile *profile, sc_card_t *card) 85 85 { 86 sc_file_t *df = profile->df_info->file, *dir, *userpinfile ;86 sc_file_t *df = profile->df_info->file, *dir, *userpinfile = NULL; 87 87 int r; 88 88 … … 109 109 r = cflex_delete_file(profile, card, userpinfile); 110 110 sc_file_free(userpinfile); 111 userpinfile=NULL; 111 112 } 112 113 113 114 114 115 out: /* Forget all cached keys, the pin files on card are all gone. */ 116 if (userpinfile) 117 sc_file_free(userpinfile); 115 118 sc_keycache_forget_key(NULL, -1, -1); 116 119 sc_free_apps(card); -
releases/opensc-0.11.0/src/pkcs15init/pkcs15-gpk.c
r2829 r2900 321 321 sc_error(card->ctx, 322 322 "PIN file most be protected by WRITE=NEVER"); 323 sc_file_free(pinfile); 323 324 return SC_ERROR_INVALID_ARGUMENTS; 324 325 }
