]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix memory leaks in open_tun_dco()
authorArne Schwabe <arne@rfc2549.org>
Tue, 14 Mar 2023 14:48:54 +0000 (15:48 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 14 Mar 2023 15:01:48 +0000 (16:01 +0100)
commitbe7a5640fbce2d3d56bdcee23e3d76ea15a678d1
tree98f888be903a47482fb7c1e580292eb65fc3f7c8
parent5617f0f01837ffa01b81dfb2c5c7da8ee4c42072
Fix memory leaks in open_tun_dco()

open_tun_dco_generic() already allocates the tt->actual_name string, which
shadows the allocation in the FreeBSD/Linux specific methods.

Found-By: clang with asan
Change-Id: I51f5fcfff4e5f8203fdb9aec0245cfccd17043cc
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230314144854.182110-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26411.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 021952705ba4b77a1d94bec85f6f02e6c612a37e)
src/openvpn/dco_freebsd.c
src/openvpn/dco_linux.c