Package: squid
Followup-For: Bug #332251

squid_2.4.6-2woody10.diff.gz:
----- cut-----
@@ -924,6 +938,7 @@
        if (ftpState->size > 0 && mem->inmem_hi >= ftpState->size + 
mem->reply->hdr_sz)
            ftpReadComplete(ftpState);
        else
+               storeBufferFlush(entry);
            commSetSelect(fd,
                COMM_SELECT_READ,
                ftpDataRead,
-----cut-----

In the original source code else command only one
commSetSelect(). This is patch replace 1 command
commSetSelect -> storeBufferFlush that missing {}.
I mean this is good:

@@ -923,12 +937,14 @@
        }
        if (ftpState->size > 0 && mem->inmem_hi >= ftpState->size + 
mem->reply->hdr_sz)
            ftpReadComplete(ftpState);
-       else
+       else {
+           storeBufferFlush(entry);
            commSetSelect(fd,
                COMM_SELECT_READ,
                ftpDataRead,
                data,
                Config.Timeout.read);
+       }
     }
 }

This is correct?


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.11.5
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to