flex: Avoid assigning local variable to function arguments

This commit is contained in:
Jakub Jelen 2020-11-13 17:28:23 +01:00 committed by Frank Morgner
parent 55a5556949
commit 871e4f2ac6
1 changed files with 1 additions and 0 deletions

View File

@ -1284,6 +1284,7 @@ static int flex_pin_cmd(sc_card_t *card, struct sc_pin_cmd_data *data,
r = iso_ops->pin_cmd(card, data, NULL);
if (old_cla != -1)
card->cla = old_cla;
data->apdu = NULL;
return r;
}