aboutsummaryrefslogtreecommitdiff
path: root/inet/rcmd.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-04-03 22:42:08 +0000
committerUlrich Drepper <drepper@redhat.com>2001-04-03 22:42:08 +0000
commitf114375059d2f3ee90aaeea242120b3dda84787b (patch)
treeaa89d512b7616bb59a524cc0897c547870f57282 /inet/rcmd.c
parent484ba739dfb97190d7806c99d2217a5529fa96a0 (diff)
downloadglibc-f114375059d2f3ee90aaeea242120b3dda84787b.tar
glibc-f114375059d2f3ee90aaeea242120b3dda84787b.tar.gz
glibc-f114375059d2f3ee90aaeea242120b3dda84787b.tar.bz2
glibc-f114375059d2f3ee90aaeea242120b3dda84787b.zip
(rcmd_af): Allow AF_UNSPEC as parameter.
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 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;