forked from osmocom/wireshark
proto_data: use pinfo->pool not the global scope
This commit is contained in:
parent
9cf7ff44e1
commit
5bc06b9042
|
@ -137,7 +137,7 @@ p_get_proto_name_and_key(wmem_allocator_t *scope, struct _packet_info* pinfo, gu
|
||||||
DISSECTOR_ASSERT(!"invalid wmem scope");
|
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}
|
#define PROTO_DEPTH_KEY 0x3c233fb5 // printf "0x%02x%02x\n" ${RANDOM} ${RANDOM}
|
||||||
|
|
Loading…
Reference in New Issue