1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +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;
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;