From 6b4c9f194fb1010310687a0be9c7e9e21a9c9e94 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 1 Aug 2010 04:31:17 +0800 Subject: sccp: Allow to have more data in the buffer than wanted by UDT.. --- src/sccp/sccp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sccp/sccp.c b/src/sccp/sccp.c index 9965c64..cadedb0 100644 --- a/src/sccp/sccp.c +++ b/src/sccp/sccp.c @@ -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; -- cgit v1.2.3