From 2b32d93e551df6c853ac45520d67468ecfdc9ec9 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Thu, 10 Sep 2020 07:05:31 +0000 Subject: [PATCH] Fix RADIX_MPATH build broken by r365521. Reported by: jenkins, Hartmann, O. --- sys/net/route/route_ctl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c index 1e40d639403f..a1bd7ab8a0d0 100644 --- a/sys/net/route/route_ctl.c +++ b/sys/net/route/route_ctl.c @@ -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);