Don't call tvb_get_guint8() twice

svn path=/trunk/; revision=31039
This commit is contained in:
Kovarththanan Rajaratnam 2009-11-21 10:45:19 +00:00
parent 47d20fd441
commit d56779b966
1 changed files with 1 additions and 3 deletions

View File

@ -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,