chiark / gitweb /
networkd: fix refcounting with UseMTU=yes
[elogind.git] / 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;
 }