The branch stable/13 has been updated by melifaro:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a9ed45a937697f7e2b331c39c9237e9c63a7c799

commit a9ed45a937697f7e2b331c39c9237e9c63a7c799
Author:     Alexander V. Chernikov <melif...@freebsd.org>
AuthorDate: 2022-12-02 22:20:42 +0000
Commit:     Alexander V. Chernikov <melif...@freebsd.org>
CommitDate: 2023-01-23 22:04:03 +0000

    netlink: fix non-multipath build
    
    (cherry picked from commit 6ab87ec483e9578823cbc30458f49ab07f51acf8)
---
 sys/netlink/route/route.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netlink/route/route.c b/sys/netlink/route/route.c
index 78949a643227..07735cd9d5bc 100644
--- a/sys/netlink/route/route.c
+++ b/sys/netlink/route/route.c
@@ -747,13 +747,13 @@ create_nexthop_from_attrs(struct nl_parsed_route *attrs,
     struct nl_pstate *npt, int *perror)
 {
        struct nhop_object *nh = NULL;
+       int error = 0;
 
        if (attrs->rta_multipath != NULL) {
 #ifdef ROUTE_MPATH
                /* Multipath w/o explicit nexthops */
                int num_nhops = attrs->rta_multipath->num_nhops;
                struct weightened_nhop *wn = npt_alloc(npt, sizeof(*wn) * 
num_nhops);
-               int error = 0;
 
                for (int i = 0; i < num_nhops; i++) {
                        struct rta_mpath_nh *mpnh = 
&attrs->rta_multipath->nhops[i];

Reply via email to