summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/heimdal/kdc/kerberos5.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/heimdal/kdc/kerberos5.c b/source4/heimdal/kdc/kerberos5.c
index 0cac0765ca..dbea7e3268 100644
--- a/source4/heimdal/kdc/kerberos5.c
+++ b/source4/heimdal/kdc/kerberos5.c
@@ -430,7 +430,7 @@ get_pa_etype_info(krb5_context context,
char *name;
ret = krb5_unparse_name(context, client->principal, &name);
if (ret)
- name = "<unparse_name failed>";
+ name = rk_UNCONST("<unparse_name failed>");
kdc_log(context, config, 0, "internal error in get_pa_etype_info(%s): %d != %d",
name, n, pa.len);
if (ret == 0)
@@ -610,7 +610,7 @@ get_pa_etype_info2(krb5_context context,
char *name;
ret = krb5_unparse_name(context, client->principal, &name);
if (ret)
- name = "<unparse_name failed>";
+ name = rk_UNCONST("<unparse_name failed>");
kdc_log(context, config, 0,
"internal error in get_pa_etype_info2(%s): %d != %d",
name, n, pa.len);
@@ -689,11 +689,11 @@ log_as_req(krb5_context context,
}
{
- char str[128];
+ char _str[128];
unparse_flags(KDCOptions2int(b->kdc_options), asn1_KDCOptions_units(),
- str, sizeof(str));
- if(*str)
- kdc_log(context, config, 2, "Requested flags: %s", str);
+ _str, sizeof(_str));
+ if(*_str)
+ kdc_log(context, config, 2, "Requested flags: %s", _str);
}
}