diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-25 17:29:19 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-25 18:48:03 +0100 |
commit | 237dd5e283dbdf91c775f62e2cdcabed3fa2788e (patch) | |
tree | 3f5ac1414eea37d6496ae63e906c0ab994d76d97 /openbsc/src | |
parent | 65be6de155407142ddab44faf8aee5f8d5ebf628 (diff) |
sms: Remove the text of delivered SMS when they are sent
When a SMS is marked as sent, clear the paypload. We might want
to know about connections and delivered sms but certainly not
about the content.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libmsc/db.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/db.c b/openbsc/src/libmsc/db.c index bdecbb436..0999071ad 100644 --- a/openbsc/src/libmsc/db.c +++ b/openbsc/src/libmsc/db.c @@ -1611,7 +1611,9 @@ int db_sms_mark_delivered(struct gsm_sms *sms) result = dbi_conn_queryf(conn, "UPDATE SMS " - "SET sent = datetime('now') " + "SET " + "sent = datetime('now'), " + "user_data = NULL, header = NULL, text = NULL " "WHERE id = %llu", sms->id); if (!result) { LOGP(DDB, LOGL_ERROR, "Failed to mark SMS %llu as sent.\n", sms->id); |