diff options
author | Evan Huus <eapache@gmail.com> | 2021-09-15 11:48:47 -0400 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-09-16 06:54:42 +0000 |
commit | f4aa108913db786e8dc4c2333849c8c07afebb2c (patch) | |
tree | 8f40c7f344debc3745be554205e1268df6092b3d /epan/dissectors/packet-gdb.c | |
parent | 2cb1eb955f3038e8e1a1fde655186fe786cb2a04 (diff) |
tvbparse: explicitly memory-scope parser
Avoids the use of the global memory pool in favour of one the compiler
actually knows must be in scope.
Also delete a few-hundred lines of if-0ed code that hadn't been active
in 15+ years.
Diffstat (limited to 'epan/dissectors/packet-gdb.c')
-rw-r--r-- | epan/dissectors/packet-gdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gdb.c b/epan/dissectors/packet-gdb.c index 74f095d4e8..d3ec7fd7f2 100644 --- a/epan/dissectors/packet-gdb.c +++ b/epan/dissectors/packet-gdb.c @@ -133,7 +133,7 @@ dissect_gdb_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) gdb_tree = proto_item_add_subtree(ti, ett_gdb); /* XXX support multiple sub-trees */ - tt = tvbparse_init(tvb, 0, -1, (void *)gdb_tree, NULL); + tt = tvbparse_init(pinfo->pool, tvb, 0, -1, (void *)gdb_tree, NULL); while(tvbparse_get(tt, want)) { ; |