forked from osmocom/wireshark
Don't call tvb_get_guint8() twice
svn path=/trunk/; revision=31039
This commit is contained in:
parent
47d20fd441
commit
d56779b966
|
@ -2792,12 +2792,10 @@ dissect_vendor_cl_suboption(proto_tree *v_tree, tvbuff_t *tvb,
|
|||
|
||||
case special:
|
||||
if (subopt == 4) {
|
||||
val = tvb_get_guint8(tvb, suboptoff);
|
||||
proto_tree_add_text(v_tree, tvb, optoff, subopt_len+2,
|
||||
"Suboption %d: %s%s", subopt,
|
||||
o125_cl_opt[subopt].text,
|
||||
val_to_str(tvb_get_guint8(tvb, suboptoff),
|
||||
pkt_mib_env_ind_opt_vals, "unknown"));
|
||||
val_to_str(val, pkt_mib_env_ind_opt_vals, "unknown"));
|
||||
}
|
||||
else {
|
||||
proto_tree_add_text(v_tree, tvb, optoff, subopt_len+2,
|
||||
|
|
Loading…
Reference in New Issue