summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_04_11.c
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-08 23:55:43 +0100
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-12 21:24:49 +0400
commit51052234f8a3809759c945dcb8f88b0da04e241c (patch)
tree09aea5d952b0a67710eae22a80c5f485e49a0359 /openbsc/src/libmsc/gsm_04_11.c
parentaf9683a3730ef7396adebf2dbd56d4ec8ca6b906 (diff)
sms: Send the actual TP-Service-Centre-Time-Stamp with SMS-DELIVER instead of a bogus current time.
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_11.c')
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 01cf695..7c7a632 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -250,7 +250,7 @@ static int gsm340_gen_sms_deliver_tpdu(struct msgb *msg, struct gsm_sms *sms)
/* generate TP-SCTS */
smsp = msgb_put(msg, 7);
- gsm340_gen_scts(smsp, time(NULL));
+ gsm340_gen_scts(smsp, sms->received_time);
/* generate TP-UDL */
smsp = msgb_put(msg, 1);