diff options
Diffstat (limited to 'lib/libutil/realhostname.c')
-rw-r--r-- | lib/libutil/realhostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/realhostname.c b/lib/libutil/realhostname.c index 9c033e9..6314db3 100644 --- a/lib/libutil/realhostname.c +++ b/lib/libutil/realhostname.c @@ -119,7 +119,7 @@ realhostname_sa(char *host, size_t hsize, struct sockaddr *addr, int addrlen) #endif error = getnameinfo(addr, addrlen, buf, sizeof(buf), NULL, 0, - NI_WITHSCOPEID); + NI_WITHSCOPEID | NI_NAMEREQD); if (error == 0) { struct addrinfo hints, *res, *ores; struct sockaddr *sa; |