krb5 commit: Avoid mapping GSSAPI minor code on success

Greg Hudson ghudson at MIT.EDU
Sun Jul 8 00:49:35 EDT 2012


https://github.com/krb5/krb5/commit/a02fcceeaeab1441d815255d569aaa6c193c2725
commit a02fcceeaeab1441d815255d569aaa6c193c2725
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().
    
    ticket: 7194 (new)

 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