diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-09-03 15:45:03 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-09-03 15:45:03 +0000 |
commit | 00384fb2ae07a817ba16fb3b4228e17612fd7897 (patch) | |
tree | 68ffda09086da6320bc4efd45446dbbbfe022e4c /usr.sbin/snmpd | |
parent | 6660b543b8e4efbaa3457fb6cecac38bedea49de (diff) |
Fix pasto; zero ka->dstbrd instead of clobbering ka->mask.
Diff from Jan Klemkow, ok mikeb@
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r-- | usr.sbin/snmpd/kroute.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/kroute.c b/usr.sbin/snmpd/kroute.c index 9833645e604..a3e14740a63 100644 --- a/usr.sbin/snmpd/kroute.c +++ b/usr.sbin/snmpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.32 2015/11/03 07:48:03 gerhard Exp $ */ +/* $OpenBSD: kroute.c,v 1.33 2016/09/03 15:45:02 jca Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -1127,8 +1127,7 @@ if_newaddr(u_short if_index, struct sockaddr *ifa, struct sockaddr *mask, if (brd) bcopy(brd, &ka->dstbrd.sa, brd->sa_len); else - bzero(&ka->mask, sizeof(ka->mask)); - + bzero(&ka->dstbrd, sizeof(ka->dstbrd)); } void |