mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
wireshark: s/ep_alloc/wmem_alloc/
In wireshark, they have introduced their own memory allocator wmem. This means that we need to adapt our code to that change too. Notably 0ad15f88ccf434e8210ca is the wireshark commit you want to look at. It's the one where they dropped the old API. The new allocator has been introduced in 84cc3daa (v1.10.0), however, was not exposed until 5c05c9e0 (v1.10.0). Since we already are requiring 1.11.3 or higher no other change is needed. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d3ede96d6f
commit
0bfdb9cb24
@ -113,7 +113,7 @@ format_xdr_bytes(guint8 *bytes, guint32 length)
|
||||
|
||||
if (length == 0)
|
||||
return "";
|
||||
buf = ep_alloc(length*2 + 1);
|
||||
buf = wmem_alloc(wmem_packet_scope(), length*2 + 1);
|
||||
for (i = 0; i < length; i++) {
|
||||
/* We know that buf has enough size to contain
|
||||
2 * length + '\0' characters. */
|
||||
|
Loading…
Reference in New Issue
Block a user