Author: hrs
Date: Sat Jan 28 13:09:18 2017
New Revision: 312921
URL: https://svnweb.freebsd.org/changeset/base/312921
Log:
Fix a bug which caused not to create AF_LOCAL sockets when family
is specified.
Spotted by: Alex Deiter
Modified:
head/usr.sbin/syslogd/syslogd.c
Modified: head/usr.sbin/syslogd/syslogd.c
==============================================================================
--- head/usr.sbin/syslogd/syslogd.c Sat Jan 28 12:43:19 2017
(r312920)
+++ head/usr.sbin/syslogd/syslogd.c Sat Jan 28 13:09:18 2017
(r312921)
@@ -2908,7 +2908,8 @@ socksetup(struct peer *pe)
/* Only AF_LOCAL in secure mode. */
continue;
}
- if (family != AF_UNSPEC && res->ai_family != family)
+ if (family != AF_UNSPEC &&
+ res->ai_family != AF_LOCAL && res->ai_family != family)
continue;
s = socket(res->ai_family, res->ai_socktype,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"