diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-07-08 00:31:59 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2012-08-13 15:41:27 -0400 |
commit | b1aa612166964feb91a09c852987a36d1694cd1d (patch) | |
tree | 0893f5f0340b5da45c7a8513a631c91e6d6a0647 /src/lib | |
parent | ea98a5b3d4d56770da72e6b986d21bb4096cc283 (diff) | |
download | krb5-b1aa612166964feb91a09c852987a36d1694cd1d.zip krb5-b1aa612166964feb91a09c852987a36d1694cd1d.tar.gz krb5-b1aa612166964feb91a09c852987a36d1694cd1d.tar.bz2 |
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
Diffstat (limited to 'src/lib')
-rw-r--r-- | 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); } } |