mirror of https://gerrit.osmocom.org/libosmocore
At the moment msgb_apdu_de(resp) is used to check if the msgb that is handed over to get_sw is properly populated with data. However, since msgb_apdu_de() is just adding an offset, which cannot be 0 to ->l2h the returned value also can never be NULL. This means that we cannot use msgb_apdu_de() to detect if resp contains a nullpointer. Lets check if ->l2h is not NULL instead. This will make sure that ->l2h is populated. Change-Id: I32bc56c9264c01911a4f4b4f911b09e955205010 Related: OS#5560 |
||
---|---|---|
.. | ||
Makefile.am | ||
card_fs_hpsim.c | ||
card_fs_isim.c | ||
card_fs_sim.c | ||
card_fs_tetra.c | ||
card_fs_uicc.c | ||
card_fs_usim.c | ||
class_tables.c | ||
core.c | ||
gsm_int.h | ||
reader.c | ||
reader_pcsc.c | ||
sim_int.h |