From 9ee9b63aada0c963b81a7a6739a3c2491aa44712 Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Wed, 24 Oct 2012 09:59:36 +1030 Subject: [PATCH] Issue #30, fox SEGV bug in new Rhizome fetch queue code The rhizomestress test now passes, also all rhizomeprotocol tests. --- rhizome_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhizome_fetch.c b/rhizome_fetch.c index c3a05051..42582863 100644 --- a/rhizome_fetch.c +++ b/rhizome_fetch.c @@ -147,7 +147,7 @@ static void rhizome_fetch_unqueue(struct rhizome_fetch_queue *q, int i) struct rhizome_fetch_candidate *e = &q->candidate_queue[q->candidate_queue_size - 1]; for (; c < e && c[1].manifest; ++c) c[0] = c[1]; - e->manifest = NULL; + c->manifest = NULL; } /* Return true if there are any active fetches currently in progress.