On Wed, 03 Jun 2026 15:27:41 +0800, longlong yan wrote:
> The ovpn_parse_remote() function has two memory management issues:
>
> 1. When both 'host' and 'vpnip' are non-NULL, the first getaddrinfo()
> allocation is leaked because 'result' is overwritten by the second
> getaddrinfo() call without freeing the first allocation.
>
> 2. When both 'host' and 'vpnip' are NULL, 'result' is an uninitialized
> stack variable passed to freeaddrinfo(), which is undefined behavior.
>
> [...]
Applied, thanks!
[1/1] selftests/net: ovpn: fix getaddrinfo memory leak in ovpn_parse_remote()
commit: 932f10d0ca3acec477a1e6d05d08dc933b27c89b
Best regards,
--
Antonio Quartulli <[email protected]>