Fix inetd wrong AF check for RPC services
Incorrect Address Family check is done for RPC services, and fail to initialize it. The error check is replaced to new one, which checks if IPv4 bind is enabled or not. (It is disabled when IPv6 numeric addr is specified for -a bind address option.) An review reqeust is once sent to des, but he quit MAINTAINER. Approved by: jkh
This commit is contained in:
parent
c038cf79bc
commit
f5cd0f7137
@ -1522,8 +1522,9 @@ getconfigent()
|
|||||||
} else
|
} else
|
||||||
sep->se_proto = newstr(arg);
|
sep->se_proto = newstr(arg);
|
||||||
if (strncmp(sep->se_proto, "rpc/", 4) == 0) {
|
if (strncmp(sep->se_proto, "rpc/", 4) == 0) {
|
||||||
if (sep->se_family != AF_INET) {
|
if (no_v4bind != 0) {
|
||||||
syslog(LOG_ERR, "IPv6 for RPC is not supported yet");
|
syslog(LOG_INFO, "IPv4 bind is ignored for %s",
|
||||||
|
sep->se_service);
|
||||||
freeconfig(sep);
|
freeconfig(sep);
|
||||||
goto more;
|
goto more;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user