]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
local-addresses: RTA_OIF and RTA_MULTIPATH are exclusive
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Jan 2024 11:07:17 +0000 (20:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Jan 2024 07:07:19 +0000 (16:07 +0900)
src/shared/local-addresses.c

index 6fc54b7baba07b5dfcc62ea18a33213414c97446..0c27814b61935756c2555f6012758fcdd410b1b4 100644 (file)
@@ -338,9 +338,10 @@ int local_gateways(
                                 r = add_local_gateway(&list, &n_list, af, ifi, priority, &via);
                                 if (r < 0)
                                         return r;
-
-                                continue;
                         }
+
+                        /* If the route has RTA_OIF, it does not have RTA_MULTIPATH. */
+                        continue;
                 }
 
                 size_t rta_len;