Make sure the dbm context is initialized before we start
authorTheodore Tso <tytso@mit.edu>
Sun, 9 Jul 1995 02:38:12 +0000 (02:38 +0000)
committerTheodore Tso <tytso@mit.edu>
Sun, 9 Jul 1995 02:38:12 +0000 (02:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6270 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/kdb_dbm.c

index f4bb9320b87680bca251c5d04345486a2a86bbb2..bdd7bfd3fe44f4f1d2c8002d3e8cd120b497407a 100644 (file)
@@ -1,3 +1,7 @@
+Sat Jul  8 22:37:14 1995  Theodore Y. Ts'o  (tytso@dcl)
+
+       * kdb_dbm.c (kdb5_kdbm_db_create): Make sure the dbm context is
+               initialized before we start.
 
 Fri Jul 7 16:29:22 EDT 1995    Paul Park       (pjpark@mit.edu)
        * Makefile.in - Remove LDFLAGS, find com_err in TOPLIBD.
index 859e3cba04746197a8b305078793ef870dc355df..0394089756900e4ea8afd513c46ec20f9987e7af 100644 (file)
@@ -1158,7 +1158,12 @@ krb5_dbm_db_create(context, db_name)
     register krb5_error_code retval = 0;
 #ifndef ODBM
     DBM *db;
+#endif
 
+    if ((retval = k5dbm_init_context(context)))
+       return(retval);
+    
+#ifndef ODBM
     db = KDBM_OPEN(context->db_context, db_name, O_RDWR|O_CREAT|O_EXCL, 0600);
     if (db == NULL)
        retval = errno;