summaryrefslogtreecommitdiffstats
path: root/ctdb/libctdb
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-06-18 15:47:23 +0930
committerRusty Russell <rusty@rustcorp.com.au>2010-06-18 15:47:23 +0930
commitb72620814ca11c4d8e279b17d6d014a5873c077b (patch)
tree98f4a14036d8759beb439b9038ad608fd2fecf4b /ctdb/libctdb
parentaf40302f7bdb524d9840d14bace5bdd3bca4acdf (diff)
downloadsamba-b72620814ca11c4d8e279b17d6d014a5873c077b.tar.gz
samba-b72620814ca11c4d8e279b17d6d014a5873c077b.tar.xz
samba-b72620814ca11c4d8e279b17d6d014a5873c077b.zip
libctdb: fix uninitialized field usage on ctdb_attach failure path
Found by ctdb-test. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 54c1036090d930c19231038ca861297153c1d0cf)
Diffstat (limited to 'ctdb/libctdb')
-rw-r--r--ctdb/libctdb/ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/libctdb/ctdb.c b/ctdb/libctdb/ctdb.c
index 3d587c7419..527cb7891b 100644
--- a/ctdb/libctdb/ctdb.c
+++ b/ctdb/libctdb/ctdb.c
@@ -610,7 +610,7 @@ ctdb_attachdb_send(struct ctdb_connection *ctdb,
req = new_ctdb_control_request(ctdb, opcode, CTDB_CURRENT_NODE, name,
strlen(name) + 1, attachdb_done, db);
if (!req) {
- DEBUG(db->ctdb, LOG_ERR,
+ DEBUG(ctdb, LOG_ERR,
"ctdb_attachdb_send: failed allocating DB_ATTACH");
free(db);
return NULL;