summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd/sys-bsd.c
diff options
context:
space:
mode:
authorDenis Fondras <denis@cvs.openbsd.org>2024-02-19 16:39:04 +0000
committerDenis Fondras <denis@cvs.openbsd.org>2024-02-19 16:39:04 +0000
commitd7e8df05ea8d031872c3f38ac4baaa75909d11e5 (patch)
tree92749b54e1dc1e2ee242204eabcaad7e76c72dc5 /usr.sbin/pppd/sys-bsd.c
parentb687eb8b062305e0e7e2ae33766752daedde5746 (diff)
use correct rtmsg member in sizeof()
OK miod@
Diffstat (limited to 'usr.sbin/pppd/sys-bsd.c')
-rw-r--r--usr.sbin/pppd/sys-bsd.c4
1 files 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);