]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
inet_pton() on OSX doesn't accept "127.0" as 127.0.0.0
authorAlan T. DeKok <aland@freeradius.org>
Wed, 17 Nov 2021 17:24:58 +0000 (12:24 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 17 Nov 2021 17:24:58 +0000 (12:24 -0500)
commit227a0077a93bbfc6c173953ba6ce99a5ee375024
tree05cc216d9f4edcbde414eab80352dbee5c1d2962
parent0bc2a7639a234393d05a362c2425d5ec370175e6
inet_pton() on OSX doesn't accept "127.0" as 127.0.0.0

despite what the documentation says.

But getaddrinfo() does accept it.  So when we turn off hostname
lookups, IP address parsing fails.

Work around it by just doing the work ourselves.
src/lib/util/inet.c
src/tests/unit/data_types.txt