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)
void
process_outgoing_tun(struct context *c)
{
- struct gc_arena gc = gc_new();
-
/*
* Set up for write() call to TUN/TAP
* device.
buf_reset(&c->c2.to_tun);
perf_pop();
- gc_free(&gc);
}
void
bool
multi_process_incoming_tun(struct multi_context *m, const unsigned int mpp_flags)
{
- struct gc_arena gc = gc_new();
bool ret = true;
if (BLEN(&m->top.c2.buf) > 0)
}
}
}
- gc_free(&gc);
return ret;
}