networkd: fix refcounting with UseMTU=yes

The link was unintentionally being unreferenced instead of referenced for the
MTU setup.
This commit is contained in:
Steven Noonan
2014-06-19 20:40:20 +02:00
committed by Lennart Poettering
parent a55954297d
commit ae94176262
+1 -1
View 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;
}