From 627b5439a82a942f23e51a7130547666ade06d5f Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Sat, 17 Apr 2021 21:46:30 +0100 Subject: [PATCH] Stun: ensure addr var zeroed. Closes #17344 --- epan/dissectors/packet-stun.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/epan/dissectors/packet-stun.c b/epan/dissectors/packet-stun.c index 484234aaab..f7191a5ccd 100644 --- a/epan/dissectors/packet-stun.c +++ b/epan/dissectors/packet-stun.c @@ -1106,6 +1106,9 @@ dissect_stun_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboole offset, 2, att_length); offset += 2; + /* Zero out address */ + clear_address(&addr); + switch (att_type_display) { /* Deprecated STUN RFC3489 attributes */ @@ -1363,6 +1366,7 @@ dissect_stun_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboole case 2: if (att_length < 20) break; + proto_tree_add_item(att_tree, hf_stun_att_xor_ipv6, tvb, offset+4, 16, ENC_NA); tvb_get_ipv6(tvb, offset+4, (ws_in6_addr *)clear_ip);