summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-01 04:31:17 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-01 04:57:41 +0800
commit6b4c9f194fb1010310687a0be9c7e9e21a9c9e94 (patch)
treeedfea1d384fd30bdc098b42a0d8e6b8c07e824b0
parent7360a36eadf8be9c234e8d9d4121c7027597c451 (diff)
sccp: Allow to have more data in the buffer than wanted by UDT..
-rw-r--r--src/sccp/sccp.c2
1 files changed, 1 insertions, 1 deletions
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;