Fix random crashes in http_cleanup()
commitf23d1f76273a59b030ea1028016e6a9fc9679d2c
authorMike Hommey <mh@glandium.org>
Mon, 3 Mar 2008 19:30:16 +0000 (3 20:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Mar 2008 21:36:44 +0000 (3 13:36 -0800)
tree7d25ad6dddbcf1bacf6668db85ac365d7ae040da
parentd3df4271b900c9bf529cf495afeb77fbbf621221
Fix random crashes in http_cleanup()

For some reason, http_cleanup was running all active slots, which could
lead in situations where a freed slot would be accessed in
fill_active_slots. OTOH, we are cleaning up, which means the caller
doesn't care about pending requests. Just forget about them instead
or running them.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c