diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2010-01-15 03:29:12 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2010-01-15 03:29:12 +0000 |
commit | b60aa9823e739c74582e350bad5d6892ed2c1bbb (patch) | |
tree | 80cb2fcf509252fec60139dff5b2e46612c3d623 | |
parent | 4ab439a0e7dbb542d6fc5938fe54bd7ab3f63186 (diff) |
Address family for UNIX domain socket was mistakenly specified as
AF_INET. It should be AF_UNIX.
-rw-r--r-- | usr.sbin/npppd/npppd/npppd_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/npppd/npppd/npppd_ctl.c b/usr.sbin/npppd/npppd/npppd_ctl.c index db50114e308..6126cb33527 100644 --- a/usr.sbin/npppd/npppd/npppd_ctl.c +++ b/usr.sbin/npppd/npppd/npppd_ctl.c @@ -27,7 +27,7 @@ * npppd 制御。UNIXドメインソケット /var/run/npppd_ctl を open して、 * npppdctlコマンドからのコマンドを受け付ける。 */ -/* $Id: npppd_ctl.c,v 1.1 2010/01/11 04:20:57 yasuoka Exp $ */ +/* $Id: npppd_ctl.c,v 1.2 2010/01/15 03:29:11 yasuoka Exp $ */ #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> @@ -142,7 +142,7 @@ npppd_ctl_start(npppd_ctl *_this) } unlink(_this->pathname); memset(&sun, 0, sizeof(sun)); - sun.sun_family = AF_INET; + sun.sun_family = AF_UNIX; sun.sun_len = sizeof(sun); strlcpy(sun.sun_path, _this->pathname, sizeof(sun.sun_path)); |