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-3.3.0pre1~550^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9c008d9bd8b8119007e7ad03a40235998af4f5c;p=thirdparty%2Fsamba.git dbwrap: don't panic in db_open() when attaching to ctdb fails. Michael --- diff --git a/source/lib/dbwrap.c b/source/lib/dbwrap.c index 6dfe0b37665..b498c46615c 100644 --- a/source/lib/dbwrap.c +++ b/source/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; } } }