From: Theodore Tso Date: Sun, 9 Jul 1995 02:38:12 +0000 (+0000) Subject: Make sure the dbm context is initialized before we start X-Git-Tag: krb5-1.0-beta6~1546 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9238e9c6df32f024ea0a5d7e62357115f2929748;p=krb5.git Make sure the dbm context is initialized before we start git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6270 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index f4bb9320b..bdd7bfd3f 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -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. diff --git a/src/lib/kdb/kdb_dbm.c b/src/lib/kdb/kdb_dbm.c index 859e3cba0..039408975 100644 --- a/src/lib/kdb/kdb_dbm.c +++ b/src/lib/kdb/kdb_dbm.c @@ -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;