At Tue, 28 Aug 2012 11:31:19 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <[email protected]>
> 
> rw->done is index of the original next object to be recovered and also the
> number of objects already recovered. So rw->done - 1 identify an already
> recovered object. A another caller case is that, if rw->done == 0, we'll end
> up with a -1 valule, which might cause seg fault in the array.
> 
> Signed-off-by: Liu Yuan <[email protected]>
> ---
>  sheep/recovery.c |    8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

Applied, thanks!

Kazutaka
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to