mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 07:42:26 -04:00
rpcbind: remove extraneous check for nconf not being unix(4)
We are already inside an if block with exactly same predicate.
This commit is contained in:
parent
ebb36fcaae
commit
8e8f8d86e3
1 changed files with 5 additions and 9 deletions
|
|
@ -416,18 +416,14 @@ init_transport(struct netconfig *nconf)
|
|||
*/
|
||||
if (strcmp("*", hosts[nhostsbak]) == 0)
|
||||
hosts[nhostsbak] = NULL;
|
||||
if ((strcmp(nconf->nc_netid, "local") != 0) &&
|
||||
(strcmp(nconf->nc_netid, "unix") != 0)) {
|
||||
if ((aicode = getaddrinfo(hosts[nhostsbak],
|
||||
servname, &hints, &res)) != 0) {
|
||||
syslog(LOG_ERR,
|
||||
"cannot get local address for %s: %s",
|
||||
if ((aicode = getaddrinfo(hosts[nhostsbak], servname, &hints,
|
||||
&res)) != 0) {
|
||||
syslog(LOG_ERR, "cannot get local address for %s: %s",
|
||||
nconf->nc_netid, gai_strerror(aicode));
|
||||
continue;
|
||||
}
|
||||
addrlen = res->ai_addrlen;
|
||||
sa = (struct sockaddr *)res->ai_addr;
|
||||
}
|
||||
addrlen = res->ai_addrlen;
|
||||
sa = (struct sockaddr *)res->ai_addr;
|
||||
oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
|
||||
if (bind(fd, sa, addrlen) != 0) {
|
||||
syslog(LOG_ERR, "cannot bind %s on %s: %m",
|
||||
|
|
|
|||
Loading…
Reference in a new issue