]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Better error
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Oct 2018 13:52:07 +0000 (09:52 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Oct 2018 13:52:07 +0000 (09:52 -0400)
src/lib/util/inet.c

index 28fdf8884e49b3876dd447b4665a6f4c258eda7b..761f945fd47d32abafb6a58f7bbc8a0a11ba113c 100644 (file)
@@ -263,7 +263,8 @@ int fr_inet_hton(fr_ipaddr_t *out, int af, char const *hostname, bool fallback)
 
        if (!ai) ai = alt;
        if (!ai) {
-               fr_strerror_printf("fr_inet_hton failed to find requested information for host %.100s", hostname);
+               fr_strerror_printf("Failed resolving \"%s\": No records matching requested address family returned",
+                                  hostname);
                freeaddrinfo(res);
                return -1;
        }