diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-05-05 12:55:38 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-05-05 12:55:38 +0000 |
commit | af78c8b4c47bb42ef61787f9c65989323d27ea17 (patch) | |
tree | 7efb918c6a83cf520d1249cdb98ca2ebdbd9ee8b /usr.sbin/ospfd/kroute.c | |
parent | cf9ba403977c572e44daa06bd06a82e453d80aba (diff) |
Use rtm_hdrlen instead of the static header length. OK norby@
Diffstat (limited to 'usr.sbin/ospfd/kroute.c')
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index b46fa3001c9..9bdb463da1e 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.55 2007/10/17 20:52:42 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.56 2008/05/05 12:55:37 claudio Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -1284,7 +1284,7 @@ fetchifs(u_short ifindex) switch (rtm->rtm_type) { case RTM_IFINFO: bcopy(rtm, &ifm, sizeof ifm); - sa = (struct sockaddr *)(next + sizeof(ifm)); + sa = (struct sockaddr *)(next + rtm->rtm_hdrlen); get_rtaddrs(ifm.ifm_addrs, sa, rti_info); if ((kif = kif_update(ifm.ifm_index, |