Skip to content

Commit

Permalink
osmoload: Fix fall-out from msgb_get() / msgb_pull() transition
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bhaskar authored and laf0rge committed May 23, 2013
1 parent 7684cdd commit 78bcbd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/host/osmocon/osmoload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 78bcbd6

Please sign in to comment.