summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/smsutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/smsutil.c b/src/smsutil.c
index 97a75259..6bbb57d1 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -1221,7 +1221,8 @@ gboolean encode_sms(const struct sms *in, int *len, int *tpdu_len,
int offset = 0;
int tpdu_start;
- if (in->type == SMS_TYPE_DELIVER || in->type == SMS_TYPE_SUBMIT)
+ if (in->type == SMS_TYPE_DELIVER || in->type == SMS_TYPE_SUBMIT ||
+ in->type == SMS_TYPE_COMMAND)
if (!encode_address(&in->sc_addr, TRUE, pdu, &offset))
return FALSE;