From: Arne Schwabe Date: Thu, 15 Dec 2022 19:01:41 +0000 (+0100) Subject: Remove unused gc_arena X-Git-Tag: v2.5.9~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ca01c79bc3c972719e844b224dac981e128cbb6;p=thirdparty%2Fopenvpn.git Remove unused gc_arena Reported-By: Trail of Bits Signed-off-by: Arne Schwabe Acked-by: Gert Doering Message-Id: <20221215190143.2107896-7-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25736.html Signed-off-by: Gert Doering (cherry picked from commit 97929d16a4eb05cb521a469ff4eaca32761699f3) --- diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c index de80dcffa..de7cafded 100644 --- a/src/openvpn/forward.c +++ b/src/openvpn/forward.c @@ -1714,8 +1714,6 @@ process_outgoing_link(struct context *c) void process_outgoing_tun(struct context *c) { - struct gc_arena gc = gc_new(); - /* * Set up for write() call to TUN/TAP * device. @@ -1801,7 +1799,6 @@ process_outgoing_tun(struct context *c) buf_reset(&c->c2.to_tun); perf_pop(); - gc_free(&gc); } void