summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-06-12 01:53:29 +0800
committerHarald Welte <laforge@gnumonks.org>2009-06-12 01:53:29 +0800
commita718780253cb2b76d4eb7d70dfeff3e83f5c68cc (patch)
tree712f1cfa0dd96bead6fdb2aef83d2f81a35aaa96
parent5d4b1c2c3373c70d8b5dab09609a7f7d7ab623b1 (diff)
SMS: fix parsing of destination address BCD
this bug was introduced in Andreas' MNCC patches while altering decode_bcd_number().
-rw-r--r--openbsc/src/gsm_04_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index a6f3e7aac..85ff46418 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -190,7 +190,7 @@ static int gsm340_rx_tpdu(struct msgb *msg)
/* mangle first byte to reflect length in bytes, not digits */
address_lv[0] = da_len_bytes;
/* convert to real number */
- decode_bcd_number(sms->dest_addr, sizeof(sms->dest_addr), address_lv, 1);
+ decode_bcd_number(sms->dest_addr, sizeof(sms->dest_addr), address_lv, 0);
smsp += da_len_bytes;