]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: ndisc: fix ipv6 route preference for routes with Gateway=_ipv6ra 19449/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Apr 2021 13:26:48 +0000 (22:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Apr 2021 23:50:54 +0000 (08:50 +0900)
src/network/networkd-ndisc.c

index af2d6a3ef7b17c7ac9f824bdbd841c806a76c76a..988c673255e9b4a42b4ec82af710987890925c6d 100644 (file)
@@ -558,7 +558,7 @@ static int ndisc_router_process_default(Link *link, sd_ndisc_router *rt) {
                 if (!route_gw->protocol_set)
                         route_gw->protocol = RTPROT_RA;
                 if (!route_gw->pref_set)
-                        route->pref = preference;
+                        route_gw->pref = preference;
                 route_gw->lifetime = usec_add(time_now, lifetime * USEC_PER_SEC);
                 if (route_gw->mtu == 0)
                         route_gw->mtu = mtu;