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:
parent
5f5c1b6bcb
commit
bb45b73b20
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue