kdc: Note strict aliasing violations.

This commit is contained in:
Taylor R Campbell
2023-06-20 11:10:21 +00:00
committed by Nicolas Williams
parent 29da785a64
commit 3c2b7b865b
4 changed files with 8 additions and 8 deletions

View File

@@ -58,11 +58,11 @@ load_kdc_plugins_once(void *ctx)
char **cfdirs;
cfdirs = krb5_config_get_strings(context, NULL, "kdc", "plugin_dir", NULL);
if (cfdirs)
if (cfdirs) /* XXX strict aliasing violation */
dirs = (const char * const *)cfdirs;
#endif
_krb5_load_plugins(context, "kdc", (const char **)dirs);
_krb5_load_plugins(context, "kdc", dirs);
#ifndef _WIN32
krb5_config_free_strings(cfdirs);

View File

@@ -149,11 +149,11 @@ load_plugins(krb5_context context)
char **cfdirs;
cfdirs = krb5_config_get_strings(context, NULL, "kdc", "plugin_dir", NULL);
if (cfdirs)
if (cfdirs) /* XXX strict aliasing violation */
dirs = (const char * const *)cfdirs;
#endif
_krb5_load_plugins(context, "kdc", (const char **)dirs);
_krb5_load_plugins(context, "kdc", dirs);
#ifndef _WIN32
krb5_config_free_strings(cfdirs);

View File

@@ -57,11 +57,11 @@ load_plugins(krb5_context context)
char **cfdirs;
cfdirs = krb5_config_get_strings(context, NULL, "kdc", "plugin_dir", NULL);
if (cfdirs)
if (cfdirs) /* XXX strict aliasing violation */
dirs = (const char * const *)cfdirs;
#endif
_krb5_load_plugins(context, "kdc", (const char **)dirs);
_krb5_load_plugins(context, "kdc", dirs);
#ifndef _WIN32
krb5_config_free_strings(cfdirs);

View File

@@ -47,11 +47,11 @@ load_plugins(krb5_context context)
char **cfdirs;
cfdirs = krb5_config_get_strings(context, NULL, "kdc", "plugin_dir", NULL);
if (cfdirs)
if (cfdirs) /* XXX strict aliasing violation */
dirs = (const char * const *)cfdirs;
#endif
_krb5_load_plugins(context, "kdc", (const char **)dirs);
_krb5_load_plugins(context, "kdc", dirs);
#ifndef _WIN32
krb5_config_free_strings(cfdirs);