diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-11 16:35:46 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 07:05:25 +0200 |
commit | bdf0f9484b4244c024599e00ec589ccc5b97893e (patch) | |
tree | 287a96ac1c7e0ab357e7e6f4f4f7ec2765859b15 | |
parent | 83ab63138cfbe7988e3462f66675a3f7261b381f (diff) |
sms: allow parts with neither text nor data only in Status Report PDUs
-rw-r--r-- | src/mm-sms.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-sms.c b/src/mm-sms.c index 4a647b46..1de83af0 100644 --- a/src/mm-sms.c +++ b/src/mm-sms.c @@ -1210,11 +1210,12 @@ assemble_sms (MMSms *self, } /* When the user creates the SMS, it will have either 'text' or 'data', - * not both */ + * not both. Also status report PDUs may not have neither text nor data. */ parttext = mm_sms_part_get_text (sorted_parts[idx]); partdata = mm_sms_part_get_data (sorted_parts[idx]); - if (!parttext && !partdata) { + if (!parttext && !partdata && + mm_sms_part_get_pdu_type (sorted_parts[idx]) != MM_SMS_PDU_TYPE_STATUS_REPORT) { g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED, |