From d17fed0c7f6710eb48f8c718dcacac6e2b61efc7 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Tue, 20 Jun 2023 01:39:08 +0000 Subject: [PATCH] krb5/log: Note strict aliasing violation. --- lib/krb5/log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/krb5/log.c b/lib/krb5/log.c index aeb357d95..900f40504 100644 --- a/lib/krb5/log.c +++ b/lib/krb5/log.c @@ -115,11 +115,13 @@ krb5_openlog(krb5_context context, { krb5_error_code ret; char **p; + const char *const *pc; p = krb5_config_get_strings(context, NULL, "logging", program, NULL); if (p == NULL) p = krb5_config_get_strings(context, NULL, "logging", "default", NULL); - ret = heim_openlog(context->hcontext, program, (const char **)p, fac); + pc = (const char *const *)p; /* XXX strict aliasing violation */ + ret = heim_openlog(context->hcontext, program, pc, fac); krb5_config_free_strings(p); return ret; }