From 5a8b0fe99f302e5d1ff2b47a1fe617ccd3a8b7b7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 15 Jul 2008 15:27:14 +0200 Subject: dbwrap: don't panic in db_open() when attaching to ctdb fails. Michael (This used to be commit b9c008d9bd8b8119007e7ad03a40235998af4f5c) --- source3/lib/dbwrap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib/dbwrap.c') diff --git a/source3/lib/dbwrap.c b/source3/lib/dbwrap.c index 6dfe0b3766..b498c46615 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; } } } -- cgit