summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-04 14:39:56 +0200
committerVolker Lendecke <vl@samba.org>2009-05-04 14:46:17 +0200
commit7070256f5e292eb252e9ee3b5150190105dab276 (patch)
tree11c5d95c7eaecd34b753a006c7bde8d1039fe1b9 /source3
parent796764d92ba0afe2306f4955730e6afb80cb2eb7 (diff)
downloadsamba-7070256f5e292eb252e9ee3b5150190105dab276.tar.gz
samba-7070256f5e292eb252e9ee3b5150190105dab276.tar.bz2
samba-7070256f5e292eb252e9ee3b5150190105dab276.zip
Do not crash in ctdbd_traverse if ctdbd is not around
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/ctdbd_conn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 88d82caab8..dde377581b 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -1101,6 +1101,11 @@ NTSTATUS ctdbd_traverse(uint32 db_id,
struct ctdbd_traverse_state state;
status = ctdbd_init_connection(NULL, &conn);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0, ("ctdbd_init_connection failed: %s\n",
+ nt_errstr(status)));
+ return status;
+ }
t.db_id = db_id;
t.srvid = conn->rand_srvid;