2c2
< /* $FreeBSD: head/usr.sbin/rpcbind/security.c 107952 2002-12-16 22:24:26Z mbr $ */
---
> /* $FreeBSD: head/usr.sbin/rpcbind/security.c 262860 2014-03-06 17:33:27Z mav $ */
111,117c111,119
< if (addr->sa_family == AF_LOCAL)
< return 1;
< request_init(&req, RQ_DAEMON, "rpcbind", RQ_CLIENT_SIN, addr, 0);
< sock_methods(&req);
< if(!hosts_access(&req)) {
< logit(deny_severity, addr, proc, prog, ": request from unauthorized host");
< return 0;
---
> if (libwrap && addr->sa_family != AF_LOCAL) {
> request_init(&req, RQ_DAEMON, "rpcbind", RQ_CLIENT_SIN, addr,
> 0);
> sock_methods(&req);
> if(!hosts_access(&req)) {
> logit(deny_severity, addr, proc, prog,
> ": request from unauthorized host");
> return 0;
> }
< /* $FreeBSD: head/usr.sbin/rpcbind/security.c 107952 2002-12-16 22:24:26Z mbr $ */
---
> /* $FreeBSD: head/usr.sbin/rpcbind/security.c 262860 2014-03-06 17:33:27Z mav $ */
111,117c111,119
< if (addr->sa_family == AF_LOCAL)
< return 1;
< request_init(&req, RQ_DAEMON, "rpcbind", RQ_CLIENT_SIN, addr, 0);
< sock_methods(&req);
< if(!hosts_access(&req)) {
< logit(deny_severity, addr, proc, prog, ": request from unauthorized host");
< return 0;
---
> if (libwrap && addr->sa_family != AF_LOCAL) {
> request_init(&req, RQ_DAEMON, "rpcbind", RQ_CLIENT_SIN, addr,
> 0);
> sock_methods(&req);
> if(!hosts_access(&req)) {
> logit(deny_severity, addr, proc, prog,
> ": request from unauthorized host");
> return 0;
> }