From: John Kohl Date: Fri, 27 Apr 1990 17:36:04 +0000 (+0000) Subject: deal properly with errors X-Git-Tag: krb5-1.0-alpha2~769 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d38fed5a1d83c2208cdf707c93bae3dcaf2b9ca;p=krb5.git deal properly with errors git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@627 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 0ef55ac30..38e9275e9 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -114,8 +114,8 @@ OLDDECLARG(krb5_ccache, ccache) /* now decode the reply...could be error or as_rep */ - if (!krb5_is_kdc_rep(&reply)) - return KRB5KRB_AP_ERR_MSG_TYPE; + if (!krb5_is_kdc_rep(&reply) && !krb5_is_krb_error(&reply)) + return KRB5KRB_AP_ERR_MSG_TYPE; if (retval = decode_krb5_as_rep(&reply, &as_reply)) { if (decode_krb5_error(&reply, &err_reply)) return retval; /* some other reply--??? */