Loading
selftest/net/ovpn: fix crash in case of getaddrinfo() failure
getaddrinfo() may fail with error code different from EAI_FAIL or EAI_NONAME, however in this case we still try to free the results object, thus leading to a crash. Fix this by bailing out on any possible error. Fixes: 959bc330 ("testing/selftests: add test tool and scripts for ovpn module") Signed-off-by:Antonio Quartulli <antonio@openvpn.net>