diff options
author | Luke Howard <lukeh@padl.com> | 2009-01-02 23:55:50 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2009-01-02 23:55:50 +0000 |
commit | 4e9c31f9d1725595d84bd25c41b5bc4474c33fbc (patch) | |
tree | 407b0da00feb55e8300d05403fbf541ff9940c17 | |
parent | 901042360746064dd7bbd2a3c07f6693f9935886 (diff) | |
download | krb5-4e9c31f9d1725595d84bd25c41b5bc4474c33fbc.zip krb5-4e9c31f9d1725595d84bd25c41b5bc4474c33fbc.tar.gz krb5-4e9c31f9d1725595d84bd25c41b5bc4474c33fbc.tar.bz2 |
Cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/mskrb-integ@21674 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/krb/get_in_tkt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index f5ac97d..f30ae21 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -672,8 +672,7 @@ krb5_get_in_tkt(krb5_context context, if (++referral_count > KRB5_REFERRAL_MAXHOPS || err_reply->client == NULL || err_reply->client->realm.length == 0) { - retval = (krb5_error_code) err_reply->error + - ERROR_TABLE_BASE_krb5; + retval = KRB5KDC_ERR_WRONG_REALM; krb5_free_error(context, err_reply); goto cleanup; } @@ -1329,8 +1328,7 @@ krb5_get_init_creds(krb5_context context, } else if (canon_flag && err_reply->error == KDC_ERR_WRONG_REALM) { if (err_reply->client == NULL || err_reply->client->realm.length == 0) { - ret = (krb5_error_code) err_reply->error - + ERROR_TABLE_BASE_krb5; + ret = KRB5KDC_ERR_WRONG_REALM; krb5_free_error(context, err_reply); goto cleanup; } |