Add missing APDU return code

This commit is contained in:
Alexandre Paillier
2022-07-12 10:24:46 +02:00
parent fcc375a9aa
commit 0cfb16759c

View File

@@ -48,6 +48,7 @@ static void *field_encode(const uint8_t *const value,
start_idx = 0;
break;
default:
apdu_response_code = APDU_RESPONSE_CONDITION_NOT_SATISFIED;
return NULL; // should not be here
}
memcpy(&padded_value[start_idx], value, length);