Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2023 22:12:03 GMT
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a9ed45a93769 - stable/13 - netlink: fix non-multipath build
Message-ID:  <202301232212.30NMC3Eu012926@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by melifaro:

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

commit a9ed45a937697f7e2b331c39c9237e9c63a7c799
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-12-02 22:20:42 +0000
Commit:     Alexander V. Chernikov <melifaro@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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301232212.30NMC3Eu012926>