[uboot-kirkwood] Fixed support for Iomega
[openwrt.git] / package / uhttpd / src / uhttpd.c
index 6f5e616..a818e1c 100644 (file)
@@ -401,6 +401,10 @@ static struct http_request * uh_http_header_recv(struct client *cl)
                        {
                                ensure_out(rlen = uh_tcp_recv(cl, bufptr, rlen));
 
+                               /* unexpected eof - #7904 */
+                               if( rlen == 0 )
+                                       return NULL;
+
                                blen -= rlen;
                                bufptr += rlen;
                        }
This page took 0.018139 seconds and 4 git commands to generate.