aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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;
}