krb5 commit [krb5-1.10]: Avoid mapping GSSAPI minor code on success
Tom Yu
tlyu at MIT.EDU
Mon Aug 13 16:43:44 EDT 2012
https://github.com/krb5/krb5/commit/b1aa612166964feb91a09c852987a36d1694cd1d
commit b1aa612166964feb91a09c852987a36d1694cd1d
Author: Greg Hudson <ghudson at mit.edu>
Date: Sun Jul 8 00:31:59 2012 -0400
Avoid mapping GSSAPI minor code on success
In gssint_import_internal_name, don't map the minor code from
mech->gss_duplicate_name if it returned successfully. Fixes an
"unexpected non-zero minor status" error reported by SAP's gsstest
when it invokes gss_canonicalize_name().
(cherry picked from commit a02fcceeaeab1441d815255d569aaa6c193c2725)
ticket: 7194
version_fixed: 1.10.4
status: resolved
src/lib/gssapi/mechglue/g_glue.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/lib/gssapi/mechglue/g_glue.c b/src/lib/gssapi/mechglue/g_glue.c
index 2048523..a9b6f35 100644
--- a/src/lib/gssapi/mechglue/g_glue.c
+++ b/src/lib/gssapi/mechglue/g_glue.c
@@ -375,7 +375,8 @@ gss_name_t *internal_name;
union_name->mech_name,
internal_name);
if (status != GSS_S_UNAVAILABLE) {
- map_error(minor_status, mech);
+ if (status != GSS_S_COMPLETE)
+ map_error(minor_status, mech);
return (status);
}
}
More information about the cvs-krb5
mailing list