From c199e31fcd10cdc6d1d4a81f5b1c8963c1dab116 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Tue, 20 Jun 2023 01:38:26 +0000 Subject: [PATCH] krb5/init_creds_pw.c: Label unconst abuse. API is just not type-safe here, bummer. --- lib/krb5/init_creds_pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index e1ae65912..dcfd9b22f 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -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;