libosmocore/src/sim
Philipp Maier 9802c14489 reader: more meaningful null pointer check in get_sw
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
2022-05-24 17:59:40 +02:00
..
Makefile.am Bump version: 1.5.1.282-ab5e-dirty → 1.6.0 2021-11-16 13:08:23 +01:00
card_fs_hpsim.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
card_fs_isim.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
card_fs_sim.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
card_fs_tetra.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
card_fs_uicc.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
card_fs_usim.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
class_tables.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
core.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gsm_int.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
reader.c reader: more meaningful null pointer check in get_sw 2022-05-24 17:59:40 +02:00
reader_pcsc.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
sim_int.h sim: Add HPSIM application support 2020-03-21 16:31:17 +01:00