1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Do not crash in ctdbd_traverse if ctdbd is not around

This commit is contained in:
Volker Lendecke 2009-05-04 14:39:56 +02:00
parent 796764d92b
commit 7070256f5e

View File

@ -1101,6 +1101,11 @@ NTSTATUS ctdbd_traverse(uint32 db_id,
struct ctdbd_traverse_state state; struct ctdbd_traverse_state state;
status = ctdbd_init_connection(NULL, &conn); 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.db_id = db_id;
t.srvid = conn->rand_srvid; t.srvid = conn->rand_srvid;