summaryrefslogtreecommitdiffstats
path: root/utils/osmo-sim-test.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-10-27 20:43:06 +0100
committerHarald Welte <laforge@gnumonks.org>2014-10-27 20:46:40 +0100
commitd6ec984c51ffa8c3185b1a0472b4aa0b522364fa (patch)
tree294b793fe211ae0c80feeb58016bcd60f9aa4ed5 /utils/osmo-sim-test.c
parent881b5169e5210e7bbfe1b93ea81b345dfef08e51 (diff)
osmo-sim-test: Fix read_binary() return check
if we expect rmsg to be set, we should check for it...
Diffstat (limited to 'utils/osmo-sim-test.c')
-rw-r--r--utils/osmo-sim-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c
index 244c2df3..9d1b481a 100644
--- a/utils/osmo-sim-test.c
+++ b/utils/osmo-sim-test.c
@@ -350,7 +350,7 @@ static int dump_file(struct osim_chan_hdl *chan, uint16_t fid)
uint16_t remain_len = i - offset;
uint16_t read_len = OSMO_MIN(remain_len, 256);
rmsg = read_binary(chan, offset, read_len);
- if (!msg)
+ if (!rmsg)
return -EIO;
offset += read_len;
printf("Content: %s\n",