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:
parent
5d4b1c2c33
commit
a718780253
|
@ -190,7 +190,7 @@ static int gsm340_rx_tpdu(struct msgb *msg)
|
||||||
/* mangle first byte to reflect length in bytes, not digits */
|
/* mangle first byte to reflect length in bytes, not digits */
|
||||||
address_lv[0] = da_len_bytes;
|
address_lv[0] = da_len_bytes;
|
||||||
/* convert to real number */
|
/* 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;
|
smsp += da_len_bytes;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue