the lock is permanent, because it's already been done.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11837
dc483132-0cff-0310-8789-
dd5450dbe970
+1999-09-08 Ken Raeburn <raeburn@mit.edu>
+
+ * adb_openclose.c (osa_adb_fini_db): Don't fclose the lock file if
+ the lock is permanent, because it's already been done.
+
Mon Dec 7 15:19:11 1998 Ezra Peisach <epeisach@mit.edu>
* svr_principal.c (kadm5_randkey_principal_3): Fix typo in
* after trashing it. This has to be allowed, so don't
* generate an error.
*/
- (void) fclose(db->lock->lockfile);
+ if (db->lock->lockmode != OSA_ADB_PERMANENT)
+ (void) fclose(db->lock->lockfile);
db->lock->lockfile = NULL;
krb5_free_context(db->lock->context);
}