diff options
author | sthen <sthen@openbsd.org> | 2010-04-02 23:55:37 +0000 |
---|---|---|
committer | sthen <sthen@openbsd.org> | 2010-04-02 23:55:37 +0000 |
commit | ade6468b8caad2947ca91c25d87db66df45762a5 (patch) | |
tree | c0b0680709f8f0eec3bfab8595078fab3b0428db /usr.sbin/ospfd/kroute.c | |
parent | tweak previous; half of the tweaks from jmc@; ok jmc@ (diff) | |
download | wireguard-openbsd-ade6468b8caad2947ca91c25d87db66df45762a5.tar.xz wireguard-openbsd-ade6468b8caad2947ca91c25d87db66df45762a5.zip |
The rtm_errno check which was moved in the last commit should only
be done for rtmsgs (which have an rtm_errno) and not ifmsgs (which have
part of an if_data struct in that location). Fixes problems finding
interface addresses at startup. ok claudio@
Diffstat (limited to 'usr.sbin/ospfd/kroute.c')
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index 380cbc31a9c..5fd4704c832 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.79 2010/04/01 14:02:40 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.80 2010/04/02 23:55:37 sthen Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -1329,9 +1329,6 @@ rtmsg_process(char *buf, int len) mpath = 0; prio = 0; - if (rtm->rtm_errno) /* failed attempts... */ - continue; - sa = (struct sockaddr *)(next + rtm->rtm_hdrlen); get_rtaddrs(rtm->rtm_addrs, sa, rti_info); @@ -1346,6 +1343,9 @@ rtmsg_process(char *buf, int len) mpath = 0; prio = 0; + if (rtm->rtm_errno) /* failed attempts... */ + continue; + if (rtm->rtm_tableid != kr_state.rdomain) continue; |