-/* $OpenBSD: route.c,v 1.93 2008/06/08 19:12:28 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.94 2008/07/28 13:25:10 claudio Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
#ifndef SMALL_KERNEL
if (rn_mpath_capable(rnh) &&
(rn = rnh->rnh_lookup(info->rti_info[RTAX_DST],
- info->rti_info[RTAX_NETMASK], rnh)) != NULL) {
+ info->rti_info[RTAX_NETMASK], rnh)) != NULL &&
+ (rn = rn_mpath_prio(rn, prio)) != NULL) {
if (rn_mpath_next(rn) == NULL)
((struct rtentry *)rn)->rt_flags &= ~RTF_MPATH;
else