From f443493ddbacab2792bb9aaec4806ffab56f7ebd Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sun, 14 Jun 2009 00:20:06 -0500 Subject: [PATCH] Fix SMS Concatenation header parsing --- src/smsutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smsutil.c b/src/smsutil.c index 275c6950..20654cc2 100644 --- a/src/smsutil.c +++ b/src/smsutil.c @@ -1814,7 +1814,7 @@ gboolean sms_extract_concatenation(const struct sms *sms, guint16 *ref_num, if (concat_hdr[1] == 0) break; - if (concat_hdr[2] == 0 || concat_hdr[1] > concat_hdr[2]) + if (concat_hdr[2] == 0 || concat_hdr[2] > concat_hdr[1]) break; rn = concat_hdr[0]; @@ -1833,7 +1833,7 @@ gboolean sms_extract_concatenation(const struct sms *sms, guint16 *ref_num, break; if (concat_hdr[3] == 0 || - concat_hdr[2] > concat_hdr[3]) + concat_hdr[3] > concat_hdr[2]) break; rn = (concat_hdr[0] << 8) | concat_hdr[1];