Blame SOURCES/nfs-utils-2.3.3-covscan-rm-deadcode-leaks.patch

6f21ac
From c9305f75070abe76155d6db29889bf5dead218c2 Mon Sep 17 00:00:00 2001
6f21ac
From: Steve Dickson <steved@redhat.com>
6f21ac
Date: Fri, 7 Feb 2020 10:18:21 -0500
6f21ac
Subject: [PATCH] query_krb5_ccache: Removed dead code that was flagged by a
6f21ac
 covscan
6f21ac
6f21ac
Signed-off-by: Steve Dickson <steved@redhat.com>
6f21ac
---
6f21ac
 utils/gssd/krb5_util.c | 2 --
6f21ac
 1 file changed, 2 deletions(-)
6f21ac
6f21ac
diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c
6f21ac
index bff759f..a1c43d2 100644
6f21ac
--- a/utils/gssd/krb5_util.c
6f21ac
+++ b/utils/gssd/krb5_util.c
6f21ac
@@ -1066,8 +1066,6 @@ query_krb5_ccache(const char* cred_cache, char **ret_princname,
6f21ac
 			    *ret_realm = strdup(str+1);
6f21ac
 		    }
6f21ac
 		    k5_free_unparsed_name(context, princstring);
6f21ac
-		} else {
6f21ac
-			found = 0;
6f21ac
 		}
6f21ac
 	}
6f21ac
 	krb5_free_principal(context, principal);
6f21ac
-- 
6f21ac
2.24.1
6f21ac