aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_rr.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2009-08-06 23:51:45 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2009-08-06 23:51:45 +0000
commit4ec31fe7d8cb331d652bd2c6713b2806a5fc6f7d (patch)
treeb1758cee940873958b029ac3b850dbd31b7eea23 /epan/dissectors/packet-gsm_a_rr.c
parentd860c86eca5febe13bf11da87c7359c373b9a7cd (diff)
Fix some individual cases of 'if (unsigned) < 0'
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29320 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-gsm_a_rr.c')
-rw-r--r--epan/dissectors/packet-gsm_a_rr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_a_rr.c b/epan/dissectors/packet-gsm_a_rr.c
index ef2de9b48b..c0a0fd1fa4 100644
--- a/epan/dissectors/packet-gsm_a_rr.c
+++ b/epan/dissectors/packet-gsm_a_rr.c
@@ -7522,7 +7522,7 @@ dtap_rr_paging_resp(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len)
curr_offset++;
curr_len--;
- if (curr_len <= 0) return;
+ if ((signed)curr_len <= 0) return;
ELEM_MAND_LV(GSM_A_PDU_TYPE_COMMON, DE_MS_CM_2, NULL);
@@ -8611,7 +8611,7 @@ dissect_ccch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (msg_str == NULL)
return;
- if ((len - offset) <= 0)
+ if (offset >= len)
return;
/*