From ceb3ec2b6935864e3c7f2943570b9a974797d24a Mon Sep 17 00:00:00 2001 From: denis Date: Mon, 19 Feb 2024 16:39:03 +0000 Subject: [PATCH] use correct rtmsg member in sizeof() OK miod@ --- usr.sbin/pppd/sys-bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pppd/sys-bsd.c b/usr.sbin/pppd/sys-bsd.c index bac8dab1989..8827aab57f3 100644 --- a/usr.sbin/pppd/sys-bsd.c +++ b/usr.sbin/pppd/sys-bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys-bsd.c,v 1.32 2021/10/24 21:24:19 deraadt Exp $ */ +/* $OpenBSD: sys-bsd.c,v 1.33 2024/02/19 16:39:03 denis Exp $ */ /* * sys-bsd.c - System-dependent procedures for setting up @@ -1123,7 +1123,7 @@ dodefaultroute(g, cmd) rtmsg.gway.sin_len = sizeof(rtmsg.gway); rtmsg.gway.sin_family = AF_INET; rtmsg.gway.sin_addr.s_addr = g; - rtmsg.mask.sin_len = sizeof(rtmsg.dst); + rtmsg.mask.sin_len = sizeof(rtmsg.mask); rtmsg.mask.sin_family = AF_INET; rtmsg.hdr.rtm_msglen = sizeof(rtmsg); -- 2.20.1