1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

tests: fix segfault in store test when connection to ctdbd failed.

(This used to be ctdb commit 43a15d2906b3f9d08af234f55a3a0f614571d3a7)
This commit is contained in:
Michael Adam 2010-12-21 17:18:03 +01:00
parent 1a08df9a46
commit eb5a0cc1e2

View File

@ -138,6 +138,11 @@ int main(int argc, const char *argv[])
ctdb = ctdb_cmdline_client(ev);
if (ctdb == NULL) {
printf("failed to connect to ctdb daemon.\n");
exit(1);
}
/* attach to a specific database */
ctdb_db = ctdb_attach(ctdb, "test.tdb", false, 0);
if (!ctdb_db) {