Fix SMS Concatenation header parsing

This commit is contained in:
Denis Kenzior 2009-06-14 00:20:06 -05:00
parent 93c2a630b0
commit f443493ddb
1 changed files with 2 additions and 2 deletions

View File

@ -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];