diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-27 01:25:59 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-29 04:23:25 +0800 |
commit | dbd957c8725f8bc48109c6d2b12bc66c2a1d79aa (patch) | |
tree | e9a0e2601363d9c6ef2068dffa9a52d2104ca0ef | |
parent | bfc36880246a7a76ab6bce3a02610a42c1e9da15 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |