From: Greg Hudson Date: Thu, 11 Aug 2011 15:03:28 +0000 (+0000) Subject: Correctly dereference cred_handle when assigning to spcred in X-Git-Tag: krb5-1.10-alpha1~279 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9093e0805c49cddc86a6fef5154e77aa959f227;p=krb5.git Correctly dereference cred_handle when assigning to spcred in spnego_gss_set_cred_option. Reported by aberry@likewise.com. ticket: 6943 target_version: 1.9.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25096 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/spnego/spnego_mech.c b/src/lib/gssapi/spnego/spnego_mech.c index 8364acc37..9461b75cb 100644 --- a/src/lib/gssapi/spnego/spnego_mech.c +++ b/src/lib/gssapi/spnego/spnego_mech.c @@ -2284,7 +2284,7 @@ KRB5_CALLCONV spnego_gss_set_cred_option( { OM_uint32 ret; OM_uint32 tmp_minor_status; - spnego_gss_cred_id_t spcred = (spnego_gss_cred_id_t)cred_handle; + spnego_gss_cred_id_t spcred = (spnego_gss_cred_id_t)*cred_handle; gss_cred_id_t mcred; mcred = (spcred == NULL) ? GSS_C_NO_CREDENTIAL : spcred->mcred;