deal properly with errors
authorJohn Kohl <jtkohl@mit.edu>
Fri, 27 Apr 1990 17:36:04 +0000 (17:36 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 27 Apr 1990 17:36:04 +0000 (17:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@627 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/get_in_tkt.c

index 0ef55ac30e9ca2779b25b165c612c00e72d1b3b0..38e9275e90e62c8f7d3759c97abd6397480005a3 100644 (file)
@@ -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--??? */