]> 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 13:41:54 +0000 (15:41 +0200)
commita11bea18b1c93b260352ec505db15be0ec9431ee
tree59bf5253151109bcd976f8b5f2edfa0961c2c89b
parentb66701e5e2ef194f33e2a8865a4abf4567466d83
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.

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>
src/openvpn/route.c