From: Michael Adam Date: Tue, 15 Jul 2008 13:27:14 +0000 (+0200) Subject: dbwrap: don't panic in db_open() when attaching to ctdb fails. X-Git-Tag: samba-4.0.0alpha6~801^2~687^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a8b0fe99f302e5d1ff2b47a1fe617ccd3a8b7b7;p=thirdparty%2Fsamba.git dbwrap: don't panic in db_open() when attaching to ctdb fails. Michael (This used to be commit b9c008d9bd8b8119007e7ad03a40235998af4f5c) --- diff --git a/source3/lib/dbwrap.c b/source3/lib/dbwrap.c index 6dfe0b37665..b498c46615c 100644 --- a/source3/lib/dbwrap.c +++ b/source3/lib/dbwrap.c @@ -83,8 +83,7 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx, if (result == NULL) { DEBUG(0,("failed to attach to ctdb %s\n", partname)); - smb_panic("failed to attach to a ctdb " - "database"); + return NULL; } } }