osmo-sim-test: Fix read_binary() return check

if we expect rmsg to be set, we should check for it...
This commit is contained in:
Harald Welte 2014-10-27 20:43:06 +01:00
parent 881b5169e5
commit d6ec984c51
1 changed files with 1 additions and 1 deletions

View File

@ -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",