[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:
parent
3cb2890e56
commit
8fabf514ef
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue