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:
Bhaskar 2013-05-22 22:53:36 +05:30 committed by Harald Welte
parent 7684cdd20c
commit 78bcbd6cdb
1 changed files with 1 additions and 1 deletions

View File

@ -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);