osmoload: Fix fall-out from msgb_get() / msgb_pull() transition
Bugfix in Osmoload.c: Assigning correct value to data pointer in LOADER_MEM_READ. Wrong value was introduced in last update when msgb_get() was replaced by msgb_pull() which returns end of data instead of start of data.
This commit is contained in:
parent
7684cdd20c
commit
78bcbd6cdb
|
@ -307,7 +307,7 @@ loader_handle_reply(struct msgb *msg) {
|
|||
length = msgb_pull_u8(msg);
|
||||
crc = msgb_pull_u16(msg);
|
||||
address = msgb_pull_u32(msg);
|
||||
data = msgb_pull(msg, length);
|
||||
data = msgb_pull(msg, length) - length;
|
||||
break;
|
||||
case LOADER_MEM_WRITE:
|
||||
length = msgb_pull_u8(msg);
|
||||
|
|
Loading…
Reference in New Issue