The value 'w' is unallocated when the join result is CJ_RES_MASTER_TRANSFER. Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> --- sheep/group.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sheep/group.c b/sheep/group.c index db13188..bd1356a 100644 --- a/sheep/group.c +++ b/sheep/group.c @@ -1272,7 +1272,7 @@ static void sd_join_handler(struct sheepdog_node_list_entry *joined, update_epoch_store(sys->epoch); } - if (node_cmp(&w->joined, &sys->this_node) == 0) + if (node_cmp(joined, &sys->this_node) == 0) /* this output is used for testing */ vprintf(SDOG_DEBUG, "join Sheepdog cluster\n"); break; -- 1.7.2.5 |