aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-jxta.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-04-23 09:25:10 -0400
committerMichael Mann <mmann78@netscape.net>2016-04-25 23:03:42 +0000
commit83a547682b8a7d031ac3a23600607e81b4891a14 (patch)
tree01a4f9afa10cd55ff7b8484482462cb69f23c7c4 /epan/dissectors/packet-jxta.c
parent4d635bcfe865868f01f49186a48d82c8092ed8d7 (diff)
Treat JXTA URI address type like AT_STRINGZ.
An "empty" address should still have a size of 1 for NULL string character. Bug: 12354 Change-Id: I32e3217cba2802be90244f8579acacf524162e2a Reviewed-on: https://code.wireshark.org/review/15070 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-jxta.c')
-rw-r--r--epan/dissectors/packet-jxta.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-jxta.c b/epan/dissectors/packet-jxta.c
index 9382446e6d..1990e8fc26 100644
--- a/epan/dissectors/packet-jxta.c
+++ b/epan/dissectors/packet-jxta.c
@@ -924,9 +924,7 @@ static int dissect_jxta_welcome(tvbuff_t * tvb, packet_info * pinfo, proto_tree
col_append_str(pinfo->cinfo, COL_INFO, *current_token);
if (NULL != found_addr) {
- found_addr->type = uri_address_type;
- found_addr->len = (int) strlen(*current_token);
- found_addr->data = wmem_strdup(wmem_file_scope(), *current_token);
+ set_address(found_addr, uri_address_type, (int)strlen(*current_token) + 1, wmem_strdup(wmem_file_scope(), *current_token));
}
token_offset += (guint) strlen(*current_token) + 1;