Added new function krb_err_msg() that should be used instead of
indexing into krb_err_txt[]. The function does a sanity check on the error code. Replaced all occurencies of krb_err_txt[]. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@280 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -221,9 +221,9 @@ authenticate(p, addr)
|
||||
|
||||
if (auth != KSUCCESS) {
|
||||
pop_msg(p, POP_FAILURE, "Kerberos authentication failure: %s",
|
||||
krb_err_txt[auth]);
|
||||
krb_err_msg(auth));
|
||||
pop_log(p, POP_FAILURE, "%s: (%s.%s@%s) %s", p->client,
|
||||
kdata.pname, kdata.pinst, kdata.prealm, krb_err_txt[auth]);
|
||||
kdata.pname, kdata.pinst, kdata.prealm, krb_err_msg(auth));
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user