diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-04 16:30:39 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-04 16:30:39 +0200 |
commit | bb45b73b208e6bfe2f56b3e4c15045612a0dfead (patch) | |
tree | 6495068ffa79413e7a301684f39223106878bac3 /openbsc/src/bsc_msc_ip.c | |
parent | 5f5c1b6bcbf389c35f839ef0b39fb73961717c32 (diff) |
bsc_msc_ip.c: Fix crash for the hexdump during writing..
we need to set the msgb l2h to the right position otherwise
when trying to dump it we will have a nice crash.
Diffstat (limited to 'openbsc/src/bsc_msc_ip.c')
-rw-r--r-- | openbsc/src/bsc_msc_ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c index c552b7f6c..48fd261a0 100644 --- a/openbsc/src/bsc_msc_ip.c +++ b/openbsc/src/bsc_msc_ip.c @@ -612,7 +612,7 @@ static int mgcp_do_read(struct bsc_fd *fd) return -1; } - msgb_put(mgcp, ret); + mgcp->l2h = msgb_put(mgcp, ret); msc_queue_write(mgcp, NAT_IPAC_PROTO_MGCP); return 0; } |