From a02fcceeaeab1441d815255d569aaa6c193c2725 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 8 Jul 2012 00:31:59 -0400 Subject: 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 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/gssapi/mechglue') 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); } } -- cgit