~noskcaj/gnome-keyring/merge

« back to all changes in this revision

Viewing changes to debian/patches/0001-Revert-ssh-agent-Fix-leak-in-search_keys_like_attrib.patch

  • Committer: Jonathan Riddell
  • Date: 2015-04-08 14:08:45 UTC
  • Revision ID: jriddell@ubuntu.com-20150408140845-g07nv4w55p60qvdz
Tags: 3.15.92-0ubuntu1
* New upstream release
 - includes fix to "Can't log out from Plasma session with SDDM" LP: #1407152

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From d2391dea89fb2a8a6a349253ae3f54312a0b2bbc Mon Sep 17 00:00:00 2001
2
 
From: Iain Lane <iain@orangesquash.org.uk>
3
 
Date: Thu, 5 Mar 2015 18:03:15 +0000
4
 
Subject: [PATCH] Revert "ssh-agent: Fix leak in search_keys_like_attributes()"
5
 
 
6
 
This reverts commit d177a8b5353f3156ab504f39c20753d6786e5e4d.
7
 
 
8
 
This commit causes unlocked keys to be locked again, due to incorrect
9
 
refcounting elsewhere.
10
 
 
11
 
https://bugzilla.gnome.org/744280
12
 
---
13
 
 daemon/ssh-agent/gkd-ssh-agent-ops.c | 5 +----
14
 
 1 file changed, 1 insertion(+), 4 deletions(-)
15
 
 
16
 
diff --git a/daemon/ssh-agent/gkd-ssh-agent-ops.c b/daemon/ssh-agent/gkd-ssh-agent-ops.c
17
 
index 2b30747..d70875c 100644
18
 
--- a/daemon/ssh-agent/gkd-ssh-agent-ops.c
19
 
+++ b/daemon/ssh-agent/gkd-ssh-agent-ops.c
20
 
@@ -139,7 +139,6 @@ search_keys_like_attributes (GList *modules, GckSession *session, GckAttributes
21
 
                en = gck_modules_enumerate_objects (modules, search, GCK_SESSION_AUTHENTICATE | GCK_SESSION_READ_WRITE);
22
 
 
23
 
                for (;;) {
24
 
-                       gboolean done;
25
 
                        object = gck_enumerator_next (en, NULL, &error);
26
 
                        if (!object) {
27
 
                                if (error) {
28
 
@@ -149,9 +148,7 @@ search_keys_like_attributes (GList *modules, GckSession *session, GckAttributes
29
 
                                break;
30
 
                        }
31
 
 
32
 
-                       done = !(func) (object, user_data);
33
 
-                       g_object_unref (object);
34
 
-                       if (done)
35
 
+                       if (!(func) (object, user_data))
36
 
                                break;
37
 
                }
38
 
 
39
 
2.1.4
40