summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/mp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-01-16 13:15:47 +0000
committerbrian <brian@FreeBSD.org>2002-01-16 13:15:47 +0000
commit414245183e4efd4326ea425a932f73c5cc9dd073 (patch)
treead1919513333486a2fc89f76e42e8fbb384f259a /usr.sbin/ppp/mp.c
parentd056f34b3633cfdaba110d2f791a09d9a564773d (diff)
downloadFreeBSD-src-414245183e4efd4326ea425a932f73c5cc9dd073.zip
FreeBSD-src-414245183e4efd4326ea425a932f73c5cc9dd073.tar.gz
socket's first argument is an address family, not a protocol family.
Diffstat (limited to 'usr.sbin/ppp/mp.c')
-rw-r--r--usr.sbin/ppp/mp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c
index f288c8d..e6254a6 100644
--- a/usr.sbin/ppp/mp.c
+++ b/usr.sbin/ppp/mp.c
@@ -1137,7 +1137,7 @@ mpserver_Open(struct mpserver *s, struct peerid *peer)
s->socket.sun_family = AF_LOCAL;
s->socket.sun_len = sizeof s->socket;
- s->fd = ID0socket(PF_LOCAL, SOCK_DGRAM, 0);
+ s->fd = ID0socket(AF_LOCAL, SOCK_DGRAM, 0);
if (s->fd < 0) {
log_Printf(LogERROR, "mpserver: socket(): %s\n", strerror(errno));
return MPSERVER_FAILED;
OpenPOWER on IntegriCloud