squid/squid-3.0.STABLE13-gcc44.patch

15 lines
555 B
Diff

diff -ru squid-3.0.STABLE13/src/wccp2.cc squid-3.0.STABLE13.wccp/src/wccp2.cc
--- squid-3.0.STABLE13/src/wccp2.cc 2009-02-03 02:36:23.000000000 +0100
+++ squid-3.0.STABLE13.wccp/src/wccp2.cc 2009-03-06 16:04:14.000000000 +0100
@@ -1182,8 +1182,9 @@
/* Go through the data structure */
while (data_length > offset) {
+ char *data = wccp2_i_see_you.data;
- header = (struct wccp2_item_header_t *) &wccp2_i_see_you.data[offset];
+ header = (struct wccp2_item_header_t *) &data[offset];
switch (ntohs(header->type)) {