[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..
This commit is contained in:
Holger Hans Peter Freyther 2010-02-12 23:08:21 +01:00
parent 3cb2890e56
commit 8fabf514ef
1 changed files with 1 additions and 0 deletions

View File

@ -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",