aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-12 23:08:21 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-12 23:08:21 +0100
commit8fabf514efcfd2dc3ced496655f31ba9a53fea24 (patch)
treeb6344eb4155d1fd2d143dd2bdcdc75f826f80790 /openbsc
parent3cb2890e56e715d63a89183f273c8a11ac5771ce (diff)
[sccp] Set the data_len when parsing UDT messages as well
For UDT the msgb_l3len can be safely used but it is better to set it to data_len for everyone..
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/sccp/sccp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/sccp/sccp.c b/openbsc/src/sccp/sccp.c
index 7630b1c58..a19926630 100644
--- a/openbsc/src/sccp/sccp.c
+++ b/openbsc/src/sccp/sccp.c
@@ -459,6 +459,7 @@ int _sccp_parse_udt(struct msgb *msgb, struct sccp_parse_result *result)
msgb->l3h = &udt->data[udt->variable_data];
+ result->data_len = msgb_l3len(msgb);
if (msgb_l3len(msgb) != msgb->l3h[-1]) {
DEBUGP(DSCCP, "msgb is truncated is: %u should: %u\n",