aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Neubauer <stefreak@stefreak.de>2009-12-05 12:44:41 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-21 23:27:54 +0100
commitac0c13c02c16a2ae3188978665606ac8061f84e8 (patch)
tree854f1522db28af2d3beccab2d6933daafce59443
parent73d4fce151b587ae28692448ea7094212e7eab7b (diff)
[sms] bugfix: additional functionality indicator only appears in TP_VPF_ENHANCED - not in TP_VPF_ABSOLUTE
-rw-r--r--openbsc/src/gsm_04_11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index 31526e97..17a58311 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -560,7 +560,8 @@ static int gsm340_rx_tpdu(struct msgb *msg)
case GSM340_TP_VPF_ENHANCED:
sms_vp = smsp;
/* the additional functionality indicator... */
- if (*smsp & (1<<7)) smsp++;
+ if (sms_vpf == GSM340_TP_VPF_ENHANCED && *smsp & (1<<7))
+ smsp++;
smsp += 7;
break;
case GSM340_TP_VPF_NONE: