summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/gp_creds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proxy/src/gp_creds.c b/proxy/src/gp_creds.c
index 551b020..446c7d8 100644
--- a/proxy/src/gp_creds.c
+++ b/proxy/src/gp_creds.c
@@ -580,7 +580,9 @@ uint32_t gp_add_krb5_creds(uint32_t *min,
} else if (desired_name) {
ret_maj = gp_conv_gssx_to_name(&ret_min, desired_name, &req_name);
}
- if (ret_min) {
+ if (ret_maj) {
+ goto done;
+ } else if (ret_min) {
ret_maj = GSS_S_CRED_UNAVAIL;
goto done;
}