Make compilable without -DINET6.
This commit is contained in:
parent
a4d79fec60
commit
f379586992
@ -684,7 +684,7 @@ main(argc, argv)
|
||||
syslog(deny_severity,
|
||||
"refused connection from %.500s, service %s (%s%s)",
|
||||
eval_client(&req), service, sep->se_proto,
|
||||
(req.client->sin->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : "");
|
||||
(((struct sockaddr *)req.client->sin)->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : "");
|
||||
if (sep->se_socktype != SOCK_STREAM)
|
||||
recv(ctrl, buf, sizeof (buf), 0);
|
||||
if (dofork) {
|
||||
@ -696,7 +696,7 @@ main(argc, argv)
|
||||
syslog(allow_severity,
|
||||
"connection from %.500s, service %s (%s%s)",
|
||||
eval_client(&req), service, sep->se_proto,
|
||||
(req.client->sin->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : "");
|
||||
(((struct sockaddr *)req.client->sin)->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : "");
|
||||
}
|
||||
}
|
||||
if (sep->se_bi) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user