diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-11-26 09:54:40 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-11-26 14:03:04 +0100 |
commit | 9533631e531671e7029bbe7bc2e264d9080f56c7 (patch) | |
tree | 36003d9a3996c9f72d2224deec5765cb72ead1fb | |
parent | 4a1cb09a40aaba7f412d1384b2a1a06934310359 (diff) |
osmo-sim-test.c: Fix rmsg check
we wanted to check for !rmsg, but used to check for !msg, missing error
returns from read_record_nr().
Change-Id: I79b6a94b1aa947c8329317b0626865c3cd4159c1
Fixes: Coverity CID 57672
-rw-r--r-- | utils/osmo-sim-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c index e8617484..7b79c589 100644 --- a/utils/osmo-sim-test.c +++ b/utils/osmo-sim-test.c @@ -334,7 +334,7 @@ static int dump_file(struct osim_chan_hdl *chan, uint16_t fid) case EF_TYPE_RECORD_FIXED: for (i = 0; i < ffdd.num_rec; i++) { rmsg = read_record_nr(chan, i+1, ffdd.rec_len); - if (!msg) + if (!rmsg) return -EIO; printf("SW: %s\n", osim_print_sw(chan->card, msgb_apdu_sw(msg))); printf("Rec %03u: %s\n", i+1, |