summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-04-23 18:59:09 +0200
committerLubomir Rintel <lkundrak@v3.sk>2016-04-26 18:34:42 +0200
commit23664b8b31a610d0b0dc2d980f6fda096dad0557 (patch)
tree1c3775eb810601d42d4b2523396351e0360934f0
parent5c18b96c0c4a01710bdd173cfc1564c3bed024fb (diff)
applet: avoid modifying the list we're iterating
applet_secrets_request_free() removes the request from the list, we must not proceed iterating the list. (cherry picked from commit 1e699cac885ec53a13e880da6a138b6bfb8cdcf8)
-rw-r--r--src/applet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/applet.c b/src/applet.c
index 0fe14e75..6ba735bd 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2904,6 +2904,7 @@ applet_agent_cancel_secrets_cb (AppletAgent *agent,
if (req->reqid == request_id) {
/* cancel and free this password request */
applet_secrets_request_free (req);
+ break;
}
}
}