]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dbwrap: don't panic in db_open() when attaching to ctdb fails.
authorMichael Adam <obnox@samba.org>
Tue, 15 Jul 2008 13:27:14 +0000 (15:27 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 15 Jul 2008 13:27:14 +0000 (15:27 +0200)
Michael

source/lib/dbwrap.c

index 6dfe0b37665fd7b6d4eadeff376febcddba75cfb..b498c46615c50554bfe0cc29430619cc7f97c227 100644 (file)
@@ -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;
                        }
                }
        }