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