From 98b51e56813927d3aca3b29ad172a28ad4bac65e Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Tue, 17 Apr 2012 11:27:54 +0200 Subject: [PATCH] gsmopen: zeroize sms_message store in case we receive an empty message --- src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp b/src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp index f0b28e1c75..712276549f 100644 --- a/src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp +++ b/src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp @@ -1110,7 +1110,7 @@ read: memset(at_command, 0, sizeof(at_command)); sprintf(at_command, "AT+CMGR=%d", tech_pvt->unread_sms_msg_id); - //memset(tech_pvt->sms_message, 0, sizeof(tech_pvt->sms_message)); + memset(tech_pvt->sms_message, 0, sizeof(tech_pvt->sms_message)); tech_pvt->reading_sms_msg = 1; res = gsmopen_serial_write_AT_ack(tech_pvt, at_command);