diff options
author | krw <krw@openbsd.org> | 2019-01-22 09:25:29 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2019-01-22 09:25:29 +0000 |
commit | b47fcd70ae47775b324b20b3864b36f247bfd6ef (patch) | |
tree | d529255362ae2da699d65ac7e6d0f2b5725bdf33 /usr.sbin/npppd | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-b47fcd70ae47775b324b20b3864b36f247bfd6ef.tar.xz wireguard-openbsd-b47fcd70ae47775b324b20b3864b36f247bfd6ef.zip |
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; |