(krb5_get_default_realm): set an error string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10362 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -68,9 +68,11 @@ krb5_get_default_realm(krb5_context context,
|
||||
if (context->default_realms == NULL
|
||||
|| context->default_realms[0] == NULL) {
|
||||
krb5_error_code ret = krb5_set_default_realm (context, NULL);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
krb5_set_error_string(context, "no default realm configured");
|
||||
return KRB5_CONFIG_NODEFREALM;
|
||||
}
|
||||
}
|
||||
|
||||
res = strdup (context->default_realms[0]);
|
||||
if (res == NULL) {
|
||||
|
Reference in New Issue
Block a user