[Sheepdog] [PATCH] sheep: fix uninitialized value in sd_join_handler()

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Nov 17 10:31:32 CET 2011


At Wed, 16 Nov 2011 15:06:14 +0900,
MORITA Kazutaka wrote:
> 
> 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(-)

Applied.

Kazutaka

> 
> 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
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list