From d6d7dd1e5664810b368231d03d56465112e3d82e Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Fri, 16 Jul 2021 11:36:34 -0400 Subject: First pass pinfo->pool conversion Automated find/replace of wmem_packet_scope() with pinfo->pool in all files where it didn't cause a build failure. I also tweaked a few of the docs which got caught up. --- epan/dissectors/packet-lorawan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-lorawan.c') diff --git a/epan/dissectors/packet-lorawan.c b/epan/dissectors/packet-lorawan.c index af0c272362..ed1c69ad7c 100644 --- a/epan/dissectors/packet-lorawan.c +++ b/epan/dissectors/packet-lorawan.c @@ -826,7 +826,7 @@ dissect_lorawan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree _U_, void *d #if GCRYPT_VERSION_NUMBER >= 0x010600 /* 1.6.0 */ if (encryption_keys) { gint frame_length = current_offset; - guint8 *msg = (guint8 *)wmem_alloc0(wmem_packet_scope(), frame_length + 16); + guint8 *msg = (guint8 *)wmem_alloc0(pinfo->pool, frame_length + 16); msg[0] = 0x49; msg[5] = uplink ? 0 : 1; memcpy(msg + 6, &dev_address, 4); -- cgit v1.2.3