]> git.ipfire.org Git - thirdparty/strongswan.git/commit
host: Don't try to resolve %any* keywords with mismatched address family master
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Sep 2025 13:56:26 +0000 (15:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 16 Sep 2025 08:14:26 +0000 (10:14 +0200)
commitac0272cad12f0b3dbe5432111d034fa7b6192f82
tree861d3b106374f8c038e7507a9a3332db26cf6f9e
parente33dddffeac0fd2539918cbae94c13334b211755
host: Don't try to resolve %any* keywords with mismatched address family

While host_create_from_string_and_family() usually replaces %any*
keywords, this fails if the address family doesn't match (e.g. %any4 with
AF_INET6).  There is no point in trying to resolve these keywords via
DNS as % is no valid character for host names.

Closes strongswan/strongswan#2880
src/libstrongswan/networking/host.c