Blame SOURCES/0001-Don-t-leak-the-creds-we-don-t-plan-to-copy-over.patch

7d335d
From 5733669cb88800f0e24c53b12a09034bbf342442 Mon Sep 17 00:00:00 2001
7d335d
From: Nalin Dahyabhai <nalin@dahyabhai.net>
7d335d
Date: Mon, 17 Feb 2014 17:14:20 -0500
7d335d
Subject: [PATCH 1/4] Don't leak the creds we don't plan to copy over
7d335d
7d335d
---
7d335d
 src/lib/krb5/krb/vfy_increds.c | 6 +++---
7d335d
 1 file changed, 3 insertions(+), 3 deletions(-)
7d335d
7d335d
diff --git a/src/lib/krb5/krb/vfy_increds.c b/src/lib/krb5/krb/vfy_increds.c
7d335d
index e88a37f..4833992 100644
7d335d
--- a/src/lib/krb5/krb/vfy_increds.c
7d335d
+++ b/src/lib/krb5/krb/vfy_increds.c
7d335d
@@ -69,9 +69,9 @@ copy_creds_except(krb5_context context, krb5_ccache incc,
7d335d
 
7d335d
     while (!(ret = krb5_cc_next_cred(context, incc, &cur, &creds))) {
7d335d
         if (krb5_principal_compare(context, princ, creds.server))
7d335d
-            continue;
7d335d
-
7d335d
-        ret = krb5_cc_store_cred(context, outcc, &creds);
7d335d
+            ret = 0;
7d335d
+        else
7d335d
+            ret = krb5_cc_store_cred(context, outcc, &creds);
7d335d
         krb5_free_cred_contents(context, &creds);
7d335d
         if (ret)
7d335d
             goto cleanup;
7d335d
-- 
7d335d
1.9.0
7d335d