diff options
author | Evan Huus <eapache@gmail.com> | 2021-10-07 13:31:23 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2021-10-07 13:31:23 -0400 |
commit | 0eda51a646eead9a3fe5c26067a3b0a1d34766c8 (patch) | |
tree | 978d2ed066a117132db0ffdeab46615bfa57afde /epan/dissectors/packet-lldp.c | |
parent | 086feb2f098903229a14fd25754cac06c625b647 (diff) |
to_str: scope tvb_ip6_to_str
Diffstat (limited to 'epan/dissectors/packet-lldp.c')
-rw-r--r-- | epan/dissectors/packet-lldp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c index 164c8121d8..cbcd234a13 100644 --- a/epan/dissectors/packet-lldp.c +++ b/epan/dissectors/packet-lldp.c @@ -1485,7 +1485,7 @@ dissect_lldp_chassis_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gui break; case AFNUM_INET6: if (dataLen == 18){ - strPtr = tvb_ip6_to_str(tvb, offset); + strPtr = tvb_ip6_to_str(pinfo->pool, tvb, offset); }else{ expert_add_info_format(pinfo, lf, &ei_lldp_bad_length, "Invalid Chassis ID Length (%u) for Type (%s, %s), expected (18)", dataLen, val_to_str_const(tlvsubType, chassis_id_subtypes, ""), val_to_str_const(addr_family, afn_vals, "")); @@ -1658,7 +1658,7 @@ dissect_lldp_port_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint3 break; case AFNUM_INET6: if (dataLen == 18){ - strPtr = tvb_ip6_to_str(tvb, offset); + strPtr = tvb_ip6_to_str(pinfo->pool, tvb, offset); }else{ expert_add_info_format(pinfo, lf, &ei_lldp_bad_length, "Invalid Port ID Length (%u) for Type (%s, %s), expected (18)", dataLen, val_to_str_const(tlvsubType, port_id_subtypes, ""), val_to_str_const(addr_family, afn_vals, "")); |