diff options
author | Michael Adam <obnox@samba.org> | 2008-07-15 16:43:26 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-07-15 16:43:26 +0200 |
commit | fc6216b2da1087065c26e874058de74ced692fcc (patch) | |
tree | bc5dc3335db992020382914c8977da997aa4b428 | |
parent | 3899851af02bb5b858ee025504b4c7f12385c0c7 (diff) | |
download | samba-fc6216b2da1087065c26e874058de74ced692fcc.tar.gz samba-fc6216b2da1087065c26e874058de74ced692fcc.tar.bz2 samba-fc6216b2da1087065c26e874058de74ced692fcc.zip |
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 1002507b56a13420d8178c5397610edd839a7584)
-rw-r--r-- | source3/lib/dbwrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap.c b/source3/lib/dbwrap.c index 2bff5d9257..eec15a84bd 100644 --- a/source3/lib/dbwrap.c +++ b/source3/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 |