(rcmd_af): Allow AF_UNSPEC as parameter.

This commit is contained in:
Ulrich Drepper 2001-04-03 22:42:08 +00:00
parent 484ba739df
commit f114375059

View File

@ -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;