use krb5_get_error_message()
This commit is contained in:
@@ -80,8 +80,9 @@ _kdc_db_fetch(krb5_context context,
|
|||||||
|
|
||||||
ret = config->db[i]->hdb_open(context, config->db[i], O_RDONLY, 0);
|
ret = config->db[i]->hdb_open(context, config->db[i], O_RDONLY, 0);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
kdc_log(context, config, 0, "Failed to open database: %s",
|
const char *msg = krb5_get_error_message(context, ret);
|
||||||
krb5_get_err_text(context, ret));
|
kdc_log(context, config, 0, "Failed to open database: %s", msg);
|
||||||
|
krb5_free_error_message(context, msg);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user