aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-27 01:25:59 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-27 01:25:59 +0800
commite6373b7f632487cc0cedd42d6b5d1bc9ef71cbfc (patch)
treeab605c71c28524b58f42c8fb17b91ce0524f7782
parentdaf753477e52f744de428a64e68462e3f898f31c (diff)
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.
-rw-r--r--openbsc/src/gsm_04_80.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_80.c b/openbsc/src/gsm_04_80.c
index 135582d1d..28f9b9215 100644
--- a/openbsc/src/gsm_04_80.c
+++ b/openbsc/src/gsm_04_80.c
@@ -54,7 +54,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;
}