diff --git a/applets/piv/piv.c b/applets/piv/piv.c index 750a7570..f4292088 100644 --- a/applets/piv/piv.c +++ b/applets/piv/piv.c @@ -1065,6 +1065,8 @@ static int piv_get_metadata(const CAPDU *capdu, RAPDU *rapdu) { memzero(&key, sizeof(key)); break; } + default: + EXCEPT(SW_REFERENCE_DATA_NOT_FOUND); } LL = pos;