for case where new db does not exist.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7477
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Feb 13 21:33:03 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * kdb_dbm.c (krb5_dbm_db_rename): Initialize pointer before use
+ for case where new db does not exist.
+
Tue Jan 30 18:26:38 1996 Mark Eichin <eichin@cygnus.com>
* kdb_dbm.c (krb5_dbm_db_rename): O_EXCL is meaningless without
* Set the database to the target, so that other processes sharing
* the target will stop their activity, and notice the new database.
*/
+ db_ctx = (krb5_db_context *) context->db_context;
+
retval = krb5_dbm_db_set_name(context, to);
if (retval) {
if (retval == ENOENT)
goto errout;
}
- db_ctx = (krb5_db_context *) context->db_context;
db_ctx->db_lf_name = gen_dbsuffix(db_ctx->db_name,
KDBM_LOCK_EXT(db_ctx));
if (db_ctx->db_lf_name == (char *)NULL) {