aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-pcep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-pcep.c b/epan/dissectors/packet-pcep.c
index 5ca4dc4007..c04e717489 100644
--- a/epan/dissectors/packet-pcep.c
+++ b/epan/dissectors/packet-pcep.c
@@ -3108,9 +3108,9 @@ dissect_pcep_obj_overload(proto_tree *pcep_object_tree, packet_info *pinfo, tvbu
static void
dissect_pcep_obj_unreach_destination(proto_tree *pcep_object_tree, packet_info *pinfo, tvbuff_t *tvb, int offset2, int obj_length, int type)
{
- guint address_length = 4;
+ int address_length = 4;
- guint body_obj_len = obj_length-OBJ_HDR_LEN;
+ int body_obj_len = obj_length-OBJ_HDR_LEN;
switch (type)
{
@@ -3122,7 +3122,7 @@ dissect_pcep_obj_unreach_destination(proto_tree *pcep_object_tree, packet_info *
break;
}
- while (body_obj_len) {
+ while (body_obj_len > 0) {
switch (type) {
case IPv4:
if (body_obj_len < address_length) {