From: Luke Howard Date: Wed, 16 Sep 2009 17:59:20 +0000 (+0000) Subject: g_set_context_option.c:gss_set_sec_context_option accesses X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ab3d719e1482316032fe9bd76b489308ed254e7;p=thirdparty%2Fkrb5.git g_set_context_option.c:gss_set_sec_context_option accesses ctx->mech_type at line 84 when ctx is known to be NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/authdata@22771 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/mechglue/g_set_context_option.c b/src/lib/gssapi/mechglue/g_set_context_option.c index 91e4eb4531..2f4ba36ae9 100644 --- a/src/lib/gssapi/mechglue/g_set_context_option.c +++ b/src/lib/gssapi/mechglue/g_set_context_option.c @@ -82,7 +82,7 @@ gss_set_sec_context_option (OM_uint32 *minor_status, if (ctx == NULL) { *minor_status = ENOMEM; gssint_delete_internal_sec_context(&minor, - ctx->mech_type, + &mech->mech_type, &internal_ctx, GSS_C_NO_BUFFER); return GSS_S_FAILURE;