Fix etype info; wrong termination condition used in get_etype_info
authorSam Hartman <hartmans@mit.edu>
Mon, 24 Jun 2002 22:31:16 +0000 (22:31 +0000)
committerSam Hartman <hartmans@mit.edu>
Mon, 24 Jun 2002 22:31:16 +0000 (22:31 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14565 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/kdc_preauth.c

index 1805af0977b7274374b767f4025718fdeffed200..56fe212ff0fd4bd0caabc5624d1985b3ec5a5791 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-24  Sam Hartman  <hartmans@mit.edu>
+
+       * kdc_preauth.c (get_etype_info): We get KRB5_KDB_NO_MATCHING_KEY not ENOENT; per 5.27 of kdb_xdr.c.
+
 2002-04-05  Ken Raeburn  <raeburn@mit.edu>
 
        * do_as_req.c (process_as_req): Call krb5_c_valid_enctype instead
index fbc44bde0938ba97e428f223eba911bf3ce8abe2..8352a3fdbd98434db91fe99907703810eb663905 100644 (file)
@@ -543,7 +543,7 @@ get_etype_info(context, request, client, server, pa_data)
     while (1) {
        retval = krb5_dbe_search_enctype(context, client, &start, -1,
                                         -1, 0, &client_key);
-       if (retval == ENOENT)
+       if (retval == KRB5_KDB_NO_MATCHING_KEY)
            break;
        if (retval)
            goto cleanup;