-/* $OpenBSD: kroute.c,v 1.54 2018/02/08 21:37:36 benno Exp $ */
+/* $OpenBSD: kroute.c,v 1.55 2018/07/10 10:55:21 friehm Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
if ((kr = kroute_find(&prefix, prefixlen, prio)) ==
NULL)
continue;
- if (!(kr->r.flags & F_KERNEL))
- continue;
/* get the correct route */
okr = kr;
if (mpath && (kr = kroute_matchgw(kr, &nexthop,
" not found");
return (-1);
}
+ if (!(kr->r.flags & F_KERNEL))
+ continue;
if (kroute_remove(kr) == -1)
return (-1);
break;