BOFL: fix assertion introduced in g5db1352

Bug: 10356
Change-Id: Ie3846d6462f212c7fd5162e65e9f83c1524aee36
Reviewed-on: https://code.wireshark.org/review/3515
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2014-08-08 23:44:42 +02:00
parent bbdd34a06b
commit fe74e319c0
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ dissect_bofl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_uint(bofl_tree, hf_bofl_sequence, tvb, 4, 4, sequence);
len = tvb_captured_length_remaining(tvb, 8);
len = tvb_reported_length_remaining(tvb, 8);
if (len > 0)
proto_tree_add_item(bofl_tree, hf_bofl_padding, tvb, 8, -1, ENC_NA);
}
@ -109,8 +109,8 @@ proto_register_bofl(void)
},
{ &hf_bofl_padding,
{ "Padding", "bofl.padding",
FT_UINT32, BASE_DEC, NULL, 0,
"incremental counter", HFILL }
FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }
}
};