Revert a small part of r22736 which incorrectly fixed a preauth
authorGreg Hudson <ghudson@mit.edu>
Tue, 13 Oct 2009 19:38:16 +0000 (19:38 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 13 Oct 2009 19:38:16 +0000 (19:38 +0000)
looping bug in krb5_get_init_creds.  A more correct fix will follow.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22888 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/get_in_tkt.c

index 63594ddfd5b4e8b39e8788addb8973499b87e8aa..b4d729fbcb29c4ec57a8854ab3da9c12634eee25 100644 (file)
@@ -1421,10 +1421,8 @@ krb5_get_init_creds(krb5_context context,
                }
                preauth_to_use = out_padata;
                out_padata = NULL;
-               if (err_reply->error == KDC_ERR_PREAUTH_REQUIRED) {
-                   krb5_free_error(context, err_reply);
-                   err_reply = NULL;
-               }
+               krb5_free_error(context, err_reply);
+               err_reply = NULL;
                ret = sort_krb5_padata_sequence(context,
                                                &request.server->realm,
                                                preauth_to_use);