aboutsummaryrefslogtreecommitdiff
path: root/inet/rcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/rcmd.c')
-rw-r--r--inet/rcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 04c4ac7..b240c8d 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;