]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix argv leaks in add_route() and add_route_ipv6()
authorDavid Korczynski <david@adalogics.com>
Wed, 14 Jul 2021 16:25:33 +0000 (17:25 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 27 Jul 2021 14:21:24 +0000 (16:21 +0200)
commitf2f64e058b819d07da9125824717e4bc4d8f9a9d
tree70d02732d8e5f710b9b7394e5465f4fc66d95d45
parent7029cece844d9324aff687981b8b6c33b099db2d
Fix argv leaks in add_route() and add_route_ipv6()

If a route structure is passed to add_route() or add_route_ipv6()
without the RT_DEFINED flag set, both functions leak an "argv"
structure allocation.

Add appropriate argv_free() calls.

Backport to 2.4: argv_free() was called argv_reset() back then.

Signed-off-by: David Korczynski <david@adalogics.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210714162533.10098-1-david@adalogics.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22637.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit a11bea18b1c93b260352ec505db15be0ec9431ee)
src/openvpn/route.c