From: Michael Adam Date: Tue, 15 Jul 2008 14:43:26 +0000 (+0200) Subject: dbwrap: don't panic in db_open_trans() if called with TDB_CLEAR_IF_FIRST. X-Git-Tag: samba-3.3.0pre1~550^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1002507b56a13420d8178c5397610edd839a7584;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/lib/dbwrap.c b/source/lib/dbwrap.c index 2bff5d9257b..eec15a84bd6 100644 --- a/source/lib/dbwrap.c +++ b/source/lib/dbwrap.c @@ -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