proto_data: use pinfo->pool not the global scope

This commit is contained in:
Evan Huus 2021-10-03 16:08:32 -04:00 committed by Wireshark GitLab Utility
parent 9cf7ff44e1
commit 5bc06b9042
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ p_get_proto_name_and_key(wmem_allocator_t *scope, struct _packet_info* pinfo, gu
DISSECTOR_ASSERT(!"invalid wmem scope");
}
return wmem_strdup_printf(wmem_packet_scope(),"[%s, key %u]",proto_get_protocol_name(temp->proto), temp->key);
return wmem_strdup_printf(pinfo->pool, "[%s, key %u]",proto_get_protocol_name(temp->proto), temp->key);
}
#define PROTO_DEPTH_KEY 0x3c233fb5 // printf "0x%02x%02x\n" ${RANDOM} ${RANDOM}