svn rev #21768: trunk/src/lib/gssapi/krb5/

ghudson@MIT.EDU ghudson at MIT.EDU
Wed Jan 21 13:24:02 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=21768
Commit By: ghudson
Log Message:
Patch from Luke: fix error return of krb5_gss_use_kdc_context.



Changed Files:
U   trunk/src/lib/gssapi/krb5/krb5_gss_glue.c
Modified: trunk/src/lib/gssapi/krb5/krb5_gss_glue.c
===================================================================
--- trunk/src/lib/gssapi/krb5/krb5_gss_glue.c	2009-01-21 01:22:44 UTC (rev 21767)
+++ trunk/src/lib/gssapi/krb5/krb5_gss_glue.c	2009-01-21 18:23:58 UTC (rev 21768)
@@ -280,6 +280,7 @@
     OM_uint32 major_status;
     OM_uint32 minor_status;
     gss_buffer_desc req_buffer;
+    krb5_error_code ret;
 
     req_buffer.length = 0;
     req_buffer.value = NULL;
@@ -289,7 +290,15 @@
 				      (const gss_OID)&req_oid,
 				      &req_buffer);
 
-    return major_status;    
+    if (major_status != GSS_S_COMPLETE) {
+        if (minor_status != 0)
+            ret = (krb5_error_code)minor_status;
+        else
+            ret = KRB5KRB_ERR_GENERIC;
+    } else
+        ret = 0;
+
+    return ret;
 }
 
 /*




More information about the cvs-krb5 mailing list