1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

dbwrap: don't panic in db_open_trans() if called with TDB_CLEAR_IF_FIRST.

return NULL instead and leave appropriated measures to the caller.

Michael
(This used to be commit 1002507b56)
This commit is contained in:
Michael Adam 2008-07-15 16:43:26 +02:00
parent 3899851af0
commit fc6216b2da

View File

@ -118,7 +118,7 @@ struct db_context *db_open_trans(TALLOC_CTX *mem_ctx,
if (tdb_flags & TDB_CLEAR_IF_FIRST) {
DEBUG(0,("db_open_trans: called with TDB_CLEAR_IF_FIRST: %s\n",
name));
smb_panic("db_open_trans: called with TDB_CLEAR_IF_FIRST");
return NULL;
}
#ifdef CLUSTER_SUPPORT