summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kdc/do_as_req.c2
-rw-r--r--src/kdc/do_tgs_req.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c
index 42c41f9ac..38118d4cb 100644
--- a/src/kdc/do_as_req.c
+++ b/src/kdc/do_as_req.c
@@ -433,7 +433,7 @@ errout:
free_padata_context(kdc_context, &pa_context);
if (status) {
- char * emsg = 0;
+ const char * emsg = 0;
if (errcode)
emsg = krb5_get_error_message (kdc_context, errcode);
diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c
index 7b9e1b573..c7221247c 100644
--- a/src/kdc/do_tgs_req.c
+++ b/src/kdc/do_tgs_req.c
@@ -505,7 +505,7 @@ tgt_again:
enc_tkt_reply.transited.tr_contents.length,
enc_tkt_reply.transited.tr_contents.data);
else {
- char *emsg = krb5_get_error_message(kdc_context, errcode);
+ const char *emsg = krb5_get_error_message(kdc_context, errcode);
krb5_klog_syslog (LOG_ERR,
"unexpected error checking transit from '%s' to '%s' via '%.*s': %s",
cname ? cname : "<unknown client>",
@@ -648,12 +648,12 @@ tgt_again:
cleanup:
if (status) {
- char * emsg = NULL;
+ const char * emsg = NULL;
if (!errcode)
rep_etypes2str(rep_etypestr, sizeof(rep_etypestr), &reply);
- if(errcode)
- emsg = krb5_get_error_message (kdc_context, errcode);
- krb5_klog_syslog(LOG_INFO,
+ if (errcode)
+ emsg = krb5_get_error_message (kdc_context, errcode);
+ krb5_klog_syslog(LOG_INFO,
"TGS_REQ (%s) %s: %s: authtime %d, "
"%s%s %s for %s%s%s",
ktypestr,
@@ -664,8 +664,8 @@ cleanup:
sname ? sname : "<unknown server>",
errcode ? ", " : "",
errcode ? emsg : "");
- if(errcode)
- krb5_free_error_message (kdc_context, emsg);
+ if (errcode)
+ krb5_free_error_message (kdc_context, emsg);
}
if (errcode) {