about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-rw-r--r--inet/getnameinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 435ba76ee5..9d37786441 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -259,7 +259,7 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
 	    if (h)
 	      {
 		char *c;
-		if ((flags & NI_NOFQDN) == 0
+		if ((flags & NI_NOFQDN)
 		    && (c = nrl_domainname ())
 		    && (c = strstr (h->h_name, c))
 		    && (c != h->h_name) && (*(--c) == '.'))