]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dbwrap: don't panic in db_open_trans() if called with TDB_CLEAR_IF_FIRST.
authorMichael Adam <obnox@samba.org>
Tue, 15 Jul 2008 14:43:26 +0000 (16:43 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 15 Jul 2008 14:43:26 +0000 (16:43 +0200)
return NULL instead and leave appropriated measures to the caller.

Michael

source/lib/dbwrap.c

index 2bff5d9257bd577070172cec37959be54fbc6720..eec15a84bd639918ee3f42df0523c42d43eb67a3 100644 (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