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.
This commit is contained in:
Holger Hans Peter Freyther 2010-04-04 16:30:39 +02:00
parent 5f5c1b6bcb
commit bb45b73b20
1 changed files with 1 additions and 1 deletions

View File

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