kdc: Note strict aliasing violations.
This commit is contained in:
committed by
Nicolas Williams
parent
29da785a64
commit
3c2b7b865b
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user