diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-07-08 00:31:59 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-07-08 00:31:59 -0400 |
commit | a02fcceeaeab1441d815255d569aaa6c193c2725 (patch) | |
tree | 53793703b026cbdd235a7c99ddcbaf8b43aac932 /src | |
parent | f74fa6199f328c837f452fe6a4ca9e5242484b3e (diff) | |
download | krb5-a02fcceeaeab1441d815255d569aaa6c193c2725.tar.gz krb5-a02fcceeaeab1441d815255d569aaa6c193c2725.tar.xz krb5-a02fcceeaeab1441d815255d569aaa6c193c2725.zip |
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().
ticket: 7194 (new)
Diffstat (limited to 'src')
-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 20485239e1..a9b6f3502f 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); } } |