summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-nsip.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-nsip.c')
-rw-r--r--epan/dissectors/packet-nsip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nsip.c b/epan/dissectors/packet-nsip.c
index f96f6daa46..b91ac2f2b7 100644
--- a/epan/dissectors/packet-nsip.c
+++ b/epan/dissectors/packet-nsip.c
@@ -425,9 +425,8 @@ decode_ip_element(nsip_ip_element_info_t *element, build_info_t *bi, proto_tree
if (bi->nsip_tree) {
/* UDP port value */
udp_port = tvb_get_ntohs(bi->tvb, bi->offset);
- proto_tree_add_uint_format(field_tree, hf_nsip_ip_element_udp_port,
- bi->tvb, bi->offset, 2, udp_port,
- "UDP Port: %u", udp_port);
+ proto_tree_add_item(field_tree, hf_nsip_ip_element_udp_port,
+ bi->tvb, bi->offset, 2, ENC_BIG_ENDIAN);
proto_item_append_text(tf, ", UDP Port: %u", udp_port);
}
bi->offset += 2;