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 10:41:57 -07:00 committed by Lennart Poettering
parent a55954297d
commit ae94176262
1 changed files with 1 additions and 1 deletions

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;
}