sccp: Allow to have more data in the buffer than wanted by UDT..

This commit is contained in:
Holger Hans Peter Freyther 2010-08-01 04:31:17 +08:00
parent 7360a36ead
commit 6b4c9f194f
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,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]) {
if (msgb_l3len(msgb) < msgb->l3h[-1]) {
LOGP(DSCCP, LOGL_ERROR, "msgb is truncated is: %u should: %u\n",
msgb_l3len(msgb), msgb->l3h[-1]);
return -1;