aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-homeplug.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-09-07 01:19:26 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-09-07 01:19:26 +0000
commit7a413a615a6304357d57d1f756551e9eadb874c0 (patch)
tree19975d5d487c75b6a890c77226b033e1d4d1f1d9 /epan/dissectors/packet-homeplug.c
parent0e5cef61be28b595269433c50b23ce71a24b9fd3 (diff)
Don't pass length 0 to a FT_UINT.
Fixed some uint types with length 2. svn path=/trunk/; revision=29755
Diffstat (limited to 'epan/dissectors/packet-homeplug.c')
-rw-r--r--epan/dissectors/packet-homeplug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-homeplug.c b/epan/dissectors/packet-homeplug.c
index 43278f4590..778849c9c5 100644
--- a/epan/dissectors/packet-homeplug.c
+++ b/epan/dissectors/packet-homeplug.c
@@ -591,7 +591,7 @@ static void dissect_homeplug_vs(ptvcursor_t * cursor)
ptvcursor_push_subtree(cursor, it, ett_homeplug_vs);
ptvcursor_add(cursor, hf_homeplug_vs_oui, 3, FALSE);
- it = ptvcursor_add_no_advance(cursor, hf_homeplug_vs_mid, 0, FALSE);
+ it = ptvcursor_add_no_advance(cursor, hf_homeplug_vs_mid, 1, FALSE);
mid = tvb_get_guint8(ptvcursor_tvbuff(cursor),
ptvcursor_current_offset(cursor)) & HOMEPLUG_VS_MID;
@@ -1548,7 +1548,7 @@ proto_register_homeplug(void)
{ &hf_homeplug_cer_rsvd1,
{ "Reserved", "homeplug.cer.rsvd1",
- FT_UINT8, BASE_DEC, NULL, HOMEPLUG_CER_RSVD, NULL, HFILL }
+ FT_UINT16, BASE_DEC, NULL, HOMEPLUG_CER_RSVD, NULL, HFILL }
},
{ &hf_homeplug_cer_rxtmi,
@@ -1744,7 +1744,7 @@ proto_register_homeplug(void)
{ &hf_homeplug_loader_length,
{ "Length", "homeplug.loader.length",
- FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }
+ FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }
},
{ &hf_homeplug_loader_status,