Pass fds to krb5_lock_file() and krb5_unlock_file()
authorChris Provenzano <proven@mit.edu>
Wed, 16 Aug 1995 07:27:51 +0000 (07:27 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 16 Aug 1995 07:27:51 +0000 (07:27 +0000)
Add a missing #ifdef KRBCONF_KDC_MODIFIES_KDB for update_client and
updating the database.

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

src/kdc/ChangeLog
src/kdc/do_as_req.c

index 7469b338be5c63c4ee47aad5d5ab24e6a5176a45..c1f82bf65205fffaab4bd15613e2dc27f02cc414 100644 (file)
@@ -1,3 +1,8 @@
+Wed Aug 16 02:45:19 1995  Chris Provenzano <proven@mit.edu>
+
+        * do_as_req.c: Pass fds to krb5_lock_file() and krb5_unlock_file()
+       * do_as_req.c: Add a missing #ifdef KRBCONF_KDC_MODIFIES_KDB
+               for update_client and updating the database.
 
 Tue Aug 15 14:32:54 EDT 1995   Paul Park       (pjpark@mit.edu)
        * extern.h - Add key/salt list to per-realm data.
index 9abb73cb3c9cfa26b4f35301741b08da4178bb59..6f3c3d8914e621f867570e5abccc6d7acdf34f7c 100644 (file)
@@ -557,8 +557,10 @@ errout:
     if (sname)
            free(sname);
     if (c_nprincs) {
+#ifdef KRBCONF_KDC_MODIFIES_KDB
        if (update_client)
            krb5_db_put_principal(kdc_context, &client, &c_nprincs);
+#endif /* KRBCONF_KDC_MODIFIES_KDB */
        krb5_db_free_principal(kdc_context, &client, c_nprincs);
     }
     if (s_nprincs)