---
 src/stkutil.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/stkutil.c b/src/stkutil.c
index 3cfe06a..95d2f9b 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -4177,6 +4177,9 @@ static gboolean build_dataobj_ussd_text(struct 
stk_tlv_builder *tlv,
        const struct stk_ussd_text *text = data;
        unsigned char tag = STK_DATA_OBJECT_TYPE_TEXT;
 
+       if (text->dcs == -1)
+               return TRUE;
+
        stk_tlv_builder_open_container(tlv, cr, tag, TRUE);
 
        if (text->len > 0) {
-- 
1.7.0.4

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to