From bb45b73b208e6bfe2f56b3e4c15045612a0dfead Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 4 Apr 2010 16:30:39 +0200 Subject: 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. --- openbsc/src/bsc_msc_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/bsc_msc_ip.c') 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; } -- cgit v1.2.3