|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From 817b7724521ad886045fd89097c64c468fa9f87a Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From: Susant Sahani <ssahani@users.noreply.github.com>
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Date: Fri, 31 Mar 2017 11:59:20 +0530
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Subject: [PATCH] networkd: fix route_new_static assert when IPv4LLRoute=true
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
(#5676)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
fixes: #5664(cherry picked from commit 0b180d754cd9b171f38e39554495841f666060f7)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
src/network/networkd-network.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
index ab372568de..fac42d8478 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
--- a/src/network/networkd-network.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+++ b/src/network/networkd-network.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
@@ -428,7 +428,7 @@ int network_apply(Network *network, Link *link) {
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (network->ipv4ll_route) {
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Route *route;
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
- r = route_new_static(network, "Network", 0, &route);
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+ r = route_new_static(network, NULL, 0, &route);
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
return r;
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|