From aa292cd80b3c196041b06754df71eaea9b51c5c7 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Tue, 3 Nov 2009 23:51:11 -0800 Subject: [PATCH] use krb5_get_error_message() --- kdc/misc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kdc/misc.c b/kdc/misc.c index e01618361..9a3f25464 100644 --- a/kdc/misc.c +++ b/kdc/misc.c @@ -80,8 +80,9 @@ _kdc_db_fetch(krb5_context context, ret = config->db[i]->hdb_open(context, config->db[i], O_RDONLY, 0); if (ret) { - kdc_log(context, config, 0, "Failed to open database: %s", - krb5_get_err_text(context, ret)); + const char *msg = krb5_get_error_message(context, ret); + kdc_log(context, config, 0, "Failed to open database: %s", msg); + krb5_free_error_message(context, msg); continue; }