]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove unused gc_arena
authorArne Schwabe <arne@rfc2549.org>
Thu, 15 Dec 2022 19:01:41 +0000 (20:01 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 16 Dec 2022 17:28:26 +0000 (18:28 +0100)
Reported-By: Trail of Bits
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
(cherry picked from commit 97929d16a4eb05cb521a469ff4eaca32761699f3)

src/openvpn/forward.c

index de80dcffa21c49dfc2f9d405bfa53274e0b8ff1f..de7cafded4b7541e90b35b9bf9abb8dd92a30d7e 100644 (file)
@@ -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