use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23316 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -206,7 +206,8 @@ _krb5_get_host_realm_int (krb5_context context,
|
||||
(*realms)[1] = NULL;
|
||||
return 0;
|
||||
}
|
||||
krb5_set_error_string(context, "unable to find realm of host %s", host);
|
||||
krb5_set_error_message(context, KRB5_ERR_HOST_REALM_UNKNOWN,
|
||||
"unable to find realm of host %s", host);
|
||||
return KRB5_ERR_HOST_REALM_UNKNOWN;
|
||||
}
|
||||
|
||||
@@ -248,8 +249,9 @@ krb5_get_host_realm(krb5_context context,
|
||||
*/
|
||||
ret = krb5_get_default_realms(context, realms);
|
||||
if (ret) {
|
||||
krb5_set_error_string(context, "Unable to find realm of host %s",
|
||||
host);
|
||||
krb5_set_error_message(context, KRB5_ERR_HOST_REALM_UNKNOWN,
|
||||
"Unable to find realm of host %s",
|
||||
host);
|
||||
return KRB5_ERR_HOST_REALM_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user