krb5/init_creds_pw.c: Label unconst abuse.

API is just not type-safe here, bummer.
This commit is contained in:
Taylor R Campbell
2023-06-20 01:38:26 +00:00
committed by Nicolas Williams
parent 18dcaf1ca7
commit c199e31fcd

View File

@@ -4239,7 +4239,7 @@ _krb5_init_creds_init_gss(krb5_context context,
free_gss_init_ctx(context, ctx->gss_init_ctx);
ctx->gss_init_ctx = gssic;
gssic->cred = (struct gss_cred_id_t_desc_struct *)gss_cred;
gssic->cred = rk_UNCONST(gss_cred);
gssic->mech = gss_mech;
if (flags & KRB5_GSS_IC_FLAG_RELEASE_CRED)
gssic->flags.release_cred = 1;