--------------------- PatchSet 11388 Date: 2007/04/26 21:52:17 Author: hno Branch: HEAD Tag: (none) Log: Author: Tor Ake Fransson Bug #1892: COSS segfault on shutdown The initial patch for this bug only partially solved the problem for up to two COSS directories. This patch corrects the code to also deal properly with more than two COSS stores. Members: src/fs/coss/store_dir_coss.c:1.69->1.70 Index: squid/src/fs/coss/store_dir_coss.c =================================================================== RCS file: /cvsroot/squid/squid/src/fs/coss/store_dir_coss.c,v retrieving revision 1.69 retrieving revision 1.70 diff -u -r1.69 -r1.70 --- squid/src/fs/coss/store_dir_coss.c 17 Apr 2007 12:01:57 -0000 1.69 +++ squid/src/fs/coss/store_dir_coss.c 26 Apr 2007 21:52:17 -0000 1.70 @@ -1,6 +1,6 @@ /* - * $Id: store_dir_coss.c,v 1.69 2007/04/17 12:01:57 hno Exp $ + * $Id: store_dir_coss.c,v 1.70 2007/04/26 21:52:17 hno Exp $ * * DEBUG: section 47 Store COSS Directory Routines * AUTHOR: Eric Stern @@ -1076,9 +1076,9 @@ } else if (choosenext) { last_coss_pick_index = i; return SD; - } else if (last_coss_pick_index == i) { - choosenext = 1; } + } else if (last_coss_pick_index == i) { + choosenext = 1; } } }