about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--inet/rcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 04c4ac7a38..b240c8d263 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -117,7 +117,7 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af)
 	char num[8];
 	ssize_t n;
 
-	if (af != AF_INET && af != AF_INET6)
+	if (af != AF_INET && af != AF_INET6 && af != AF_UNSPEC)
 	  {
 	    __set_errno (EAFNOSUPPORT);
 	    return -1;