From 71a8d048c5fef6322cee66b14cb64fba82536445 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Thu, 19 Jun 2014 10:41:57 -0700 Subject: [PATCH] networkd: fix refcounting with UseMTU=yes The link was unintentionally being unreferenced instead of referenced for the MTU setup. Signed-off-by: Steven Noonan --- src/network/networkd-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 6677b94..88c224d 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -761,7 +761,7 @@ static int link_set_mtu(Link *link, uint32_t mtu) { return r; } - link_unref(link); + link_ref(link); return 0; } -- 2.0.0