mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +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];
|
char num[8];
|
||||||
ssize_t n;
|
ssize_t n;
|
||||||
|
|
||||||
if (af != AF_INET && af != AF_INET6)
|
if (af != AF_INET && af != AF_INET6 && af != AF_UNSPEC)
|
||||||
{
|
{
|
||||||
__set_errno (EAFNOSUPPORT);
|
__set_errno (EAFNOSUPPORT);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user