mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
network: add missing link_ref()
This commit is contained in:
parent
75a302b561
commit
3dc2e7af5f
@ -2688,6 +2688,8 @@ int get_product_uuid_handler(sd_bus_message *m, void *userdata, sd_bus_error *re
|
|||||||
|
|
||||||
configure:
|
configure:
|
||||||
while ((link = set_steal_first(manager->links_requesting_uuid))) {
|
while ((link = set_steal_first(manager->links_requesting_uuid))) {
|
||||||
|
link_unref(link);
|
||||||
|
|
||||||
r = link_configure(link);
|
r = link_configure(link);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
link_enter_failed(link);
|
link_enter_failed(link);
|
||||||
@ -2760,6 +2762,8 @@ static int link_configure_duid(Link *link) {
|
|||||||
r = set_put(m->duids_requesting_uuid, duid);
|
r = set_put(m->duids_requesting_uuid, duid);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
|
link_ref(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1818,6 +1818,8 @@ int manager_request_product_uuid(Manager *m, Link *link) {
|
|||||||
r = set_put(m->duids_requesting_uuid, duid);
|
r = set_put(m->duids_requesting_uuid, duid);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
|
link_ref(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m->bus || sd_bus_is_ready(m->bus) <= 0) {
|
if (!m->bus || sd_bus_is_ready(m->bus) <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user