diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-22 09:25:30 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-22 09:25:30 +0000 |
commit | f510e60a932c248b782e0217055433775b7f1bbf (patch) | |
tree | 3c0a341e1946064b8468bb29d0dfa9f0b63e6a05 /usr.sbin/npppd | |
parent | b13e6a05b26f1b7259902e126de9350a99cd6fc8 (diff) |
PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls
where the "wrong" #define was used.
ok dlg@
Diffstat (limited to 'usr.sbin/npppd')
-rw-r--r-- | usr.sbin/npppd/npppd/npppd_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/npppd/npppd/npppd_subr.c b/usr.sbin/npppd/npppd/npppd_subr.c index 2c207c6a3ff..213d3b50689 100644 --- a/usr.sbin/npppd/npppd/npppd_subr.c +++ b/usr.sbin/npppd/npppd/npppd_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npppd_subr.c,v 1.18 2016/04/05 21:24:02 krw Exp $ */ +/* $OpenBSD: npppd_subr.c,v 1.19 2019/01/22 09:25:29 krw Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -225,7 +225,7 @@ in_route0(int type, struct in_addr *dest, struct in_addr *mask, rtm->rtm_msglen = cp - buf; - if ((sock = priv_socket(PF_ROUTE, SOCK_RAW, AF_UNSPEC)) < 0) { + if ((sock = priv_socket(AF_ROUTE, SOCK_RAW, AF_UNSPEC)) < 0) { log_printf(LOG_ERR, "socket() failed in %s() on %s : %m", __func__, strtype); goto fail; |