SMS: fix parsing of destination address BCD

this bug was introduced in Andreas' MNCC patches while altering
decode_bcd_number().
This commit is contained in:
Harald Welte 2009-06-12 01:53:29 +08:00
parent 5d4b1c2c33
commit a718780253
1 changed files with 1 additions and 1 deletions

View File

@ -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;