diff options
author | Keith <keith@rhizomatica.org> | 2017-08-14 15:11:57 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-08-27 03:52:47 +0200 |
commit | 1ec20dad3e3eb70d5b41d828e847ccbe3558142c (patch) | |
tree | 61ce3a6ec27dbd668b89755f61afeb5c130cf065 /src/libmsc/gsm_04_11.c | |
parent | c04ce792cb5634a5231263a80343c8c41e057730 (diff) |
LIBMSC: Use sms->text, not sms->user_data to construct report body
gsm_04_11.c sms_report_alloc()
Use the sms->text, not the sms->user_data to construct the report body.
This also prevents the potential output of non printable characters to
the log and or vty.
Change-Id: Id51bc9483ad6f52d6da74135605cfd12434c7c96
Diffstat (limited to 'src/libmsc/gsm_04_11.c')
-rw-r--r-- | src/libmsc/gsm_04_11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmsc/gsm_04_11.c b/src/libmsc/gsm_04_11.c index f87acea1e..55642aa4a 100644 --- a/src/libmsc/gsm_04_11.c +++ b/src/libmsc/gsm_04_11.c @@ -667,7 +667,7 @@ static struct gsm_sms *sms_report_alloc(struct gsm_sms *sms) len = snprintf((char *)sms_report->user_data, sizeof(sms_report->user_data), "id:%.08llu sub:000 dlvrd:000 submit date:YYMMDDhhmm done date:YYMMDDhhmm stat:DELIVRD err:000 text:%.20s", - sms->id, sms->user_data); + sms->id, sms->text); sms_report->user_data_len = len; LOGP(DLSMS, LOGL_NOTICE, "%s\n", sms_report->user_data); |