commit 1a60faaa82d5aaffbf3a9accd61fe5448acabcc8 Author: tlyu tlyu@dc483132-0cff-0310-8789-dd5450dbe970 Date: Mon Feb 8 20:55:39 2010 +0000
ticket: 6600 version_fixed: 1.8 status: resolved
pull up r23696 from trunk
------------------------------------------------------------------------ r23696 | tlyu | 2010-02-04 22:25:49 -0500 (Thu, 04 Feb 2010) | 7 lines
ticket: 6600 tags: pullup target_version: 1.8
Apply patch from Arlene Berry to avoid segfault if a mech gss_inquire_context returns GSS_C_NO_NAME for the target name.
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-8@23707 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/mechglue/g_inq_context.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) --- diff --git a/src/lib/gssapi/mechglue/g_inq_context.c b/src/lib/gssapi/mechglue/g_inq_context.c index fbb4127..bb6d569 100644 --- a/src/lib/gssapi/mechglue/g_inq_context.c +++ b/src/lib/gssapi/mechglue/g_inq_context.c @@ -141,6 +141,7 @@ gss_inquire_context( }
if (targ_name) { + if (localTargName) { status = gssint_convert_name_to_union_name(minor_status, mech, localTargName, targ_name);
@@ -150,6 +151,10 @@ gss_inquire_context(
return (status); } + } + else { + *targ_name = GSS_C_NO_NAME; + } }
/* spec says mech type must point to static storage */
authhub-commits@lists.fedorahosted.org