Author: toad
Date: 2008-02-09 13:15:21 +0000 (Sat, 09 Feb 2008)
New Revision: 17745

Modified:
   trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java
Log:
Doh

Modified: trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java        
2008-02-09 13:05:18 UTC (rev 17744)
+++ trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java        
2008-02-09 13:15:21 UTC (rev 17745)
@@ -139,6 +139,8 @@
                                int length = ((lengthBytes[0] & 0xff) << 24) + 
((lengthBytes[1] & 0xff) << 16) + ((lengthBytes[2] & 0xff) << 8) + 
(lengthBytes[3] & 0xff);
                                if(logMINOR)
                                        Logger.minor(this, "length " + length);
+                               if(dos != null)
+                                       dos.write(lengthBytes);

                                // Type of the chunk : Should match [a-zA-Z]{4}
                                if(dis.read(lengthBytes) < 4)
@@ -168,8 +170,6 @@
                                        else
                                                Logger.minor(this, "data " + 
chunkData.length);
                                if(dos != null)
-                                       dos.write(lengthBytes);
-                               if(dos != null)
                                        dos.write(chunkTypeBytes);
                                if(dos != null)
                                        dos.write(chunkData);


Reply via email to