aboutsummaryrefslogtreecommitdiffstats
path: root/tools/asterix
diff options
context:
space:
mode:
authorZoran Bošnjak <zoran.bosnjak@via.si>2021-10-30 15:34:58 +0200
committerZoran Bošnjak <zoran.bosnjak@via.si>2021-10-30 15:35:12 +0200
commiteda95fd0164b865691f22551bcc195d9e273c828 (patch)
treeb05f236abd572b2fd44abd995a6779900e8a67a3 /tools/asterix
parent77541af2df3954a1cb2016906d2ace8be24196ac (diff)
asterix: Change `wmem_packet_scope()` to `pinfo->pool`
Fixes #17696. Sync with asterix-specs #797e576298
Diffstat (limited to 'tools/asterix')
-rw-r--r--tools/asterix/packet-asterix-template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asterix/packet-asterix-template.c b/tools/asterix/packet-asterix-template.c
index d0b5d42d01..e5160afde6 100644
--- a/tools/asterix/packet-asterix-template.c
+++ b/tools/asterix/packet-asterix-template.c
@@ -638,7 +638,7 @@ static void asterix_build_subtree (tvbuff_t *tvb, packet_info *pinfo, guint offs
break;
case FIELD_PART_CALLSIGN:
str_buffer = wmem_strdup_printf(
- wmem_packet_scope (),
+ pinfo->pool,
"%c%c%c%c%c%c%c%c",
AISCode[(value >> 42) & 63],
AISCode[(value >> 36) & 63],
@@ -652,7 +652,7 @@ static void asterix_build_subtree (tvbuff_t *tvb, packet_info *pinfo, guint offs
break;
case FIELD_PART_IAS_IM:
/* special processing for I021/150 and I062/380#4 because Air Speed depends on IM subfield */
- air_speed_im_bit = wmem_new (wmem_packet_scope (), guint8);
+ air_speed_im_bit = wmem_new (pinfo->pool, guint8);
*air_speed_im_bit = (tvb_get_guint8 (tvb, offset_in_tvb) & 0x80) >> 7;
/* Save IM info for the packet. key = 21150. */
p_add_proto_data (pinfo->pool, pinfo, proto_asterix, 21150, air_speed_im_bit);