about summary refs log tree commit diff
path: root/inet/rcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/rcmd.c')
-rw-r--r--inet/rcmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 30f20d1922..2d2ed8044f 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -472,8 +472,7 @@ __icheckhost (raddr, lhost, rhost)
 	buffer = __alloca (buflen);
 	save_errno = errno;
 	while (__gethostbyname_r (lhost, &hostbuf, buffer, buflen, &hp, &herr)
-	       != 0
-	       || hp = NULL)
+	       != 0)
 		if (herr != NETDB_INTERNAL || errno != ERANGE)
 			return (0);
 		else {