aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-reload.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-01 08:14:03 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-01 08:14:03 +0000
commitc73714ad83acaffee07e6a56811e91a26c7ffe28 (patch)
treecbfea50880d7e8bd883a87957cb294883f81a721 /epan/dissectors/packet-reload.c
parent42f15b845b14107b828c70a860e73bfe7ca28ae2 (diff)
Add a couple of casts to make it compile.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34306 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-reload.c')
-rw-r--r--epan/dissectors/packet-reload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-reload.c b/epan/dissectors/packet-reload.c
index 6eef484c81..71c58d6792 100644
--- a/epan/dissectors/packet-reload.c
+++ b/epan/dissectors/packet-reload.c
@@ -1366,7 +1366,7 @@ dissect_reload_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset += MIN_HDR_LENGTH;
- if ((offset + via_list_length) > msg_length) {
+ if (((guint)offset + via_list_length) > msg_length) {
expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_ERROR, "Truncated reload packet");
return MIN_HDR_LENGTH;
}
@@ -1381,7 +1381,7 @@ dissect_reload_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
offset += via_list_length;
- if ((offset + destination_list_length) > msg_length) {
+ if (((guint)offset + destination_list_length) > msg_length) {
expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_ERROR, "Truncated reload packet");
return offset;
}
@@ -1396,7 +1396,7 @@ dissect_reload_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
offset += destination_list_length;
- if ((offset + options_length) > msg_length) {
+ if (((guint)offset + options_length) > msg_length) {
expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_ERROR, "Truncated reload packet");
return offset;
}