user_simtrace2: Fix typo in frontend_handle_card2modem()

this typo was breaking operating with simtrace2 for all responses
that contained more than just a status word.

Change-Id: Id8195d6650c3306e1a39f59d78d1348671ad062d
changes/43/18543/1
Harald Welte 3 years ago
parent aa66d91eda
commit 57b21d479b
  1. 2
      src/client/user_simtrace2.c

@ -339,7 +339,7 @@ int frontend_handle_card2modem(struct bankd_client *bc, const uint8_t *data, siz
struct osmo_st2_cardem_inst *ci = bc->cardem;
// save SW to our current APDU context
ac.sw[0] = data[len-2];
ac.sw[1] = data[len=1];
ac.sw[1] = data[len-1];
LOGCI(ci, LOGL_DEBUG, "SIMtrace <= SW=0x%02x%02x, len_rx=%zu\n", ac.sw[0], ac.sw[1], len-2);
if (len > 2) { // send PB and data to modem

Loading…
Cancel
Save