svn commit: r312921 - head/usr.sbin/syslogd

Hiroki Sato hrs at FreeBSD.org
Sat Jan 28 13:09:19 UTC 2017


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,


More information about the svn-src-head mailing list