Fix RADIX_MPATH build broken by r365521.

Reported by:	jenkins, Hartmann, O. <ohartmann at walstatt.org>
This commit is contained in:
Alexander V. Chernikov 2020-09-10 07:05:31 +00:00
parent 95407a79cb
commit 2b32d93e55
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365554

View File

@ -577,9 +577,11 @@ rt_unlinkrte(struct rib_head *rnh, struct rt_addrinfo *info, struct rib_cmd_info
*/
#ifdef RADIX_MPATH
info->rti_info[RTAX_GATEWAY] = &nh->gw_sa;
if (rt_mpath_capable(rnh))
rn = rt_mpath_unlink(rnh, info, rt, perror);
else
if (rt_mpath_capable(rnh)) {
rn = rt_mpath_unlink(rnh, info, rt, &error);
if (error != 0)
return (error);
} else
#endif
rn = rnh->rnh_deladdr(info->rti_info[RTAX_DST],
info->rti_info[RTAX_NETMASK], &rnh->head);