Blame SOURCES/Fix-error-checking-on-get_impersonator_fallback.patch

c530df
From f21071fb3662824698b61d384b1144657a508043 Mon Sep 17 00:00:00 2001
c530df
From: Robbie Harwood <rharwood@redhat.com>
c530df
Date: Wed, 15 Mar 2017 14:57:57 -0400
c530df
Subject: [PATCH] Fix error checking on get_impersonator_fallback()
c530df
c530df
Separate commit to ease backporting.
c530df
c530df
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
c530df
Reviewed-by: Simo Sorce <simo@redhat.com>
c530df
Merges: #173
c530df
(cherry picked from commit 25e31ebccde7f0d98480b6a99962fef61dd251b4)
c530df
---
c530df
 proxy/src/gp_creds.c | 2 +-
c530df
 1 file changed, 1 insertion(+), 1 deletion(-)
c530df
c530df
diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
c530df
index e05ad01..fdc6bdf 100644
c530df
--- a/proxy/src/gp_creds.c
c530df
+++ b/proxy/src/gp_creds.c
c530df
@@ -885,7 +885,7 @@ static uint32_t get_impersonator_name(uint32_t *min, gss_cred_id_t cred,
c530df
          * release that supports this call */
c530df
         ret_maj = get_impersonator_fallback(&ret_min, cred, impersonator);
c530df
         if (ret_maj == GSS_S_FAILURE) {
c530df
-            if (ret_min == KRB5_CC_NOTFOUND) {
c530df
+            if (ret_min == (uint32_t)KRB5_CC_NOTFOUND) {
c530df
                 ret_min = ENOENT;
c530df
                 ret_maj = GSS_S_COMPLETE;
c530df
             }