[11253] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

[krbdev.mit.edu #6600] gss_inquire_context cannot handle no target

daemon@ATHENA.MIT.EDU (Arlene Berry" via RT)
Tue Dec 22 18:20:13 2009

Mail-followup-to: rt@krbdev.mit.edu
mail-copies-to: never
From: ""Arlene Berry" via RT" <rt-comment@krbdev.MIT.EDU>
In-Reply-To: <rt-6600@krbdev.mit.edu>
Message-ID: <rt-6600-31929.12.5071508909057@krbdev.mit.edu>
To: "'AdminCc of krbdev.mit.edu Ticket #6600'":;"'AdminCc of krbdev.mit.edu Ticket #6600'":;@MIT.EDU
Date: Tue, 22 Dec 2009 23:19:53 +0000 (UTC)
Reply-To: rt-comment@krbdev.MIT.EDU
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu

According to RFC 2744 it is possible for gss_inquire_context to return
GSS_C_NO_NAME for the target name but if a mechanism actually does it
the mechglue layer segfaults.  This fixes it:

 

Index: g_inq_context.c

===================================================================

--- g_inq_context.c         (revision 23482)

+++ g_inq_context.c      (working copy)

@@ -140,7 +140,8 @@

 

     }

 

-    if (targ_name) {

+    if (targ_name ) {

+        if (localTargName) {

                    status =
gssint_convert_name_to_union_name(minor_status, mech,

 
localTargName, targ_name);

 

@@ -150,6 +151,10 @@

 

                                return (status);

                    }

+        }

+        else {

+            *targ_name = GSS_C_NO_NAME;

+        }

     }

 

     /* spec says mech type must point to static storage */


_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs

home help back first fref pref prev next nref lref last post