From dbd957c8725f8bc48109c6d2b12bc66c2a1d79aa Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 27 Jul 2010 01:25:59 +0800 Subject: gsm_04_80: Fix the size calculation of the 04.80 message.. Subtract the two bytes we were adding to the length of the message. --- openbsc/src/gsm_04_80.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc') diff --git a/openbsc/src/gsm_04_80.c b/openbsc/src/gsm_04_80.c index fd5882431..ebae31f87 100644 --- a/openbsc/src/gsm_04_80.c +++ b/openbsc/src/gsm_04_80.c @@ -53,7 +53,7 @@ static inline unsigned char *msgb_wrap_with_TL(struct msgb *msgb, u_int8_t tag) uint8_t *data = msgb_push(msgb, 2); data[0] = tag; - data[1] = msgb->len; + data[1] = msgb->len - 2; return data; } -- cgit v1.2.3