diff options
author | Anders Broman <anders.broman@ericsson.com> | 2019-04-17 10:58:35 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-04-17 10:43:52 +0000 |
commit | da8ad825d3b185cf485d46e6cbce43979707e2df (patch) | |
tree | 5f2e5ab114ed12a955409e27adb68311b5a83c6e /epan/dissectors/packet-diameter.c | |
parent | df2ccf09e5d779aada4e53bff72b25af2ac03469 (diff) |
Diameter: Prettify subdissection of bitfields.
Change-Id: I818e00fc3e8e2ff3da50f2075f6e7f9ec085ca2d
Reviewed-on: https://code.wireshark.org/review/32876
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-diameter.c')
-rw-r--r-- | epan/dissectors/packet-diameter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c index 291943340a..d60e52ad81 100644 --- a/epan/dissectors/packet-diameter.c +++ b/epan/dissectors/packet-diameter.c @@ -1037,7 +1037,7 @@ integer64_avp(diam_ctx_t *c, diam_avp_t *a, tvbuff_t *tvb, diam_sub_dis_t *diam_ } static const char * -unsigned32_avp(diam_ctx_t *c, diam_avp_t *a, tvbuff_t *tvb, diam_sub_dis_t *diam_sub_dis_inf _U_) +unsigned32_avp(diam_ctx_t *c, diam_avp_t *a, tvbuff_t *tvb, diam_sub_dis_t *diam_sub_dis_inf) { char *label = NULL; proto_item *pi; @@ -1046,7 +1046,7 @@ unsigned32_avp(diam_ctx_t *c, diam_avp_t *a, tvbuff_t *tvb, diam_sub_dis_t *diam gint length = tvb_reported_length(tvb); if (length == 4) { if (c->tree) { - pi= proto_tree_add_item(c->tree, a->hf_value, tvb, 0, length, ENC_BIG_ENDIAN); + diam_sub_dis_inf->item = pi = proto_tree_add_item(c->tree, a->hf_value, tvb, 0, length, ENC_BIG_ENDIAN); label = (char *)wmem_alloc(wmem_packet_scope(), ITEM_LABEL_LENGTH+1); proto_item_fill_label(PITEM_FINFO(pi), label); label = strstr(label,": ")+2; |