diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-12-31 12:26:14 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-12-31 15:01:41 +0000 |
commit | 0f6f2bd9cca8b25975dc303018687df1be8f98c1 (patch) | |
tree | 1044982256a612b97d93923ca8c84148bec2dfa2 /epan/dissectors/packet-jxta.c | |
parent | aeb10b9156d58461ca784e7ce9cbf247dcb4d9a1 (diff) |
jxta: fix Copy-paste error (CID 1158599 & 1158600)
Change-Id: Ica4ade2e7de70cefc4e77d421e35ddd72e688c16
Reviewed-on: https://code.wireshark.org/review/6165
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-jxta.c')
-rw-r--r-- | epan/dissectors/packet-jxta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-jxta.c b/epan/dissectors/packet-jxta.c index 07aac25030..dbb06a3af0 100644 --- a/epan/dissectors/packet-jxta.c +++ b/epan/dissectors/packet-jxta.c @@ -1397,7 +1397,7 @@ static int dissect_jxta_message(tvbuff_t * tvb, packet_info * pinfo, proto_tree PROTO_ITEM_SET_GENERATED(tree_item); if(AT_URI == pinfo->dst.type) { - tree_item = proto_tree_add_string(jxta_msg_tree, hf_uri_dst, tvb, 0, 0, wmem_strbuf_get_str(src_addr)); + tree_item = proto_tree_add_string(jxta_msg_tree, hf_uri_dst, tvb, 0, 0, wmem_strbuf_get_str(dst_addr)); PROTO_ITEM_SET_HIDDEN(tree_item); PROTO_ITEM_SET_GENERATED(tree_item); tree_item = proto_tree_add_string(jxta_msg_tree, hf_uri_addr, tvb, 0, 0, wmem_strbuf_get_str(dst_addr)); @@ -1939,7 +1939,7 @@ static int dissect_jxta_message_element_2(tvbuff_t * tvb, packet_info * pinfo, p nameID = tvb_get_ntohs(tvb, tree_offset); name_ti = proto_tree_add_uint(jxta_elem_tree, hf_jxta_element2_nameid, tvb, tree_offset, 2, nameID); - if (namespaceID < names_count) { + if (nameID < names_count) { proto_item_append_text(name_ti, " (%s)", names_table[nameID]); } else { proto_item_append_text(name_ti, " * BAD *"); |