chiark / gitweb /
networkd: fix refcounting with UseMTU=yes
authorSteven Noonan <steven@uplinklabs.net>
Thu, 19 Jun 2014 17:41:57 +0000 (10:41 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2014 18:40:20 +0000 (20:40 +0200)
The link was unintentionally being unreferenced instead of referenced for the
MTU setup.

src/network/networkd-link.c

index 5ab7aa7d19f7000b2329d5cbba8497581d37694e..664cc07c724ceb39d6bf63a568d30e5273353504 100644 (file)
@@ -871,7 +871,7 @@ static int link_set_mtu(Link *link, uint32_t mtu) {
                 return r;
         }
 
-        link_unref(link);
+        link_ref(link);
 
         return 0;
 }