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)
| ... | ... |
@@ -1714,8 +1714,6 @@ process_outgoing_link(struct context *c) |
| 1714 | 1714 |
void |
| 1715 | 1715 |
process_outgoing_tun(struct context *c) |
| 1716 | 1716 |
{
|
| 1717 |
- struct gc_arena gc = gc_new(); |
|
| 1718 |
- |
|
| 1719 | 1717 |
/* |
| 1720 | 1718 |
* Set up for write() call to TUN/TAP |
| 1721 | 1719 |
* device. |
| ... | ... |
@@ -1801,7 +1799,6 @@ process_outgoing_tun(struct context *c) |
| 1801 | 1801 |
buf_reset(&c->c2.to_tun); |
| 1802 | 1802 |
|
| 1803 | 1803 |
perf_pop(); |
| 1804 |
- gc_free(&gc); |
|
| 1805 | 1804 |
} |
| 1806 | 1805 |
|
| 1807 | 1806 |
void |