http-fetch: Fix object list corruption in fill_active_slots().
authorMark Wooding <mdw@distorted.org.uk>
Wed, 1 Feb 2006 11:44:28 +0000 (11:44 +0000)
committerJunio C Hamano <junkio@cox.net>
Mon, 6 Feb 2006 00:49:16 +0000 (16:49 -0800)
commit09db444fdbf647c95de698d243425a7700b91b2f
tree3c413e5b3499628b6d661b4aee88063f7046f7e3
parentdf9892ffce46d1f1bd6fe64aa445be2ffe7346cf
http-fetch: Fix object list corruption in fill_active_slots().

In fill_active_slots() -- if we find an object which has already arrived,
say as part of a pack, /don't/ remove it from the list.  It's already been
prefetched and someone will ask for it later.  Just label it as done and
carry blithely on.  (As it was, the code would dereference a freed object
to continue through the list anyway.)

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c