networkd: fix refcounting with UseMTU=yes
The link was unintentionally being unreferenced instead of referenced for the MTU setup.
This commit is contained in:
parent
a55954297d
commit
ae94176262
|
@ -871,7 +871,7 @@ static int link_set_mtu(Link *link, uint32_t mtu) {
|
|||
return r;
|
||||
}
|
||||
|
||||
link_unref(link);
|
||||
link_ref(link);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue