mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 19:28:04 +02:00
agent-manager: fix wrong unref in request_remove_agent()
Fixes: 13386f760a
This commit is contained in:
parent
b823a6b533
commit
3afa894bfb
1 changed files with 1 additions and 1 deletions
|
|
@ -665,7 +665,7 @@ request_remove_agent (Request *req, NMSecretAgent *agent, GSList **pending_reqs)
|
||||||
_LOGD (agent, "current agent removed from secrets request "LOG_REQ_FMT,
|
_LOGD (agent, "current agent removed from secrets request "LOG_REQ_FMT,
|
||||||
LOG_REQ_ARG (req));
|
LOG_REQ_ARG (req));
|
||||||
*pending_reqs = g_slist_prepend (*pending_reqs, req);
|
*pending_reqs = g_slist_prepend (*pending_reqs, req);
|
||||||
} else {
|
} else if (g_slist_find (req->pending, agent)) {
|
||||||
req->pending = g_slist_remove (req->pending, agent);
|
req->pending = g_slist_remove (req->pending, agent);
|
||||||
|
|
||||||
_LOGD (agent, "agent removed from secrets request "LOG_REQ_FMT,
|
_LOGD (agent, "agent removed from secrets request "LOG_REQ_FMT,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue