Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-distro / recipes-security / gssproxy / files / Fix-error-checking-on-get_impersonator_fallback.patch
1 From f21071fb3662824698b61d384b1144657a508043 Mon Sep 17 00:00:00 2001
2 From: Robbie Harwood <rharwood@redhat.com>
3 Date: Wed, 15 Mar 2017 14:57:57 -0400
4 Subject: [PATCH] Fix error checking on get_impersonator_fallback()
5
6 Separate commit to ease backporting.
7
8 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
9 Reviewed-by: Simo Sorce <simo@redhat.com>
10 Merges: #173
11 (cherry picked from commit 25e31ebccde7f0d98480b6a99962fef61dd251b4)
12 ---
13  proxy/src/gp_creds.c | 2 +-
14  1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
17 index e05ad01..fdc6bdf 100644
18 --- a/proxy/src/gp_creds.c
19 +++ b/proxy/src/gp_creds.c
20 @@ -885,7 +885,7 @@ static uint32_t get_impersonator_name(uint32_t *min, gss_cred_id_t cred,
21           * release that supports this call */
22          ret_maj = get_impersonator_fallback(&ret_min, cred, impersonator);
23          if (ret_maj == GSS_S_FAILURE) {
24 -            if (ret_min == KRB5_CC_NOTFOUND) {
25 +            if (ret_min == (uint32_t)KRB5_CC_NOTFOUND) {
26                  ret_min = ENOENT;
27                  ret_maj = GSS_S_COMPLETE;
28              }