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

View File

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