From 5d38fed5a1d83c2208cdf707c93bae3dcaf2b9ca Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 27 Apr 1990 17:36:04 +0000 Subject: [PATCH] deal properly with errors git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@627 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/get_in_tkt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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--??? */ -- 2.26.2