mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
(rcmd_af): Allow AF_UNSPEC as parameter.
This commit is contained in:
parent
484ba739df
commit
f114375059
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user