Fix returning store_keys();

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-08-14 01:17:06 +02:00
parent ab2e71cc40
commit 6a16d4d55c

View File

@@ -484,7 +484,7 @@ int store_keys(void *key_ctx, int type, uint8_t key_id) {
return CCID_WRONG_DATA;
file_t *fpk = file_new((KEY_PREFIX << 8) | key_id);
if (!fpk)
return SW_MEMORY_FAILURE();
return CCID_ERR_MEMORY_FATAL;
r = mkek_encrypt(kdata, key_size);
if (r != CCID_OK) {
return r;