commit | e6373b7f632487cc0cedd42d6b5d1bc9ef71cbfc | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Jul 27 01:25:59 2010 +0800 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Jul 27 01:25:59 2010 +0800 |
tree | ab605c71c28524b58f42c8fb17b91ce0524f7782 | |
parent | daf753477e52f744de428a64e68462e3f898f31c [diff] [blame] |
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.
diff --git a/openbsc/src/gsm_04_80.c b/openbsc/src/gsm_04_80.c index 135582d..28f9b92 100644 --- a/openbsc/src/gsm_04_80.c +++ b/openbsc/src/gsm_04_80.c
@@ -54,7 +54,7 @@ uint8_t *data = msgb_push(msgb, 2); data[0] = tag; - data[1] = msgb->len; + data[1] = msgb->len - 2; return data; }