diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index ba65e1361..1a3f5f94f 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1337,7 +1337,8 @@ static int sendFile(const char *url) sendHeaders(HTTP_OK); while ((count = bb_full_read(f, buf, MAX_MEMORY_BUFF)) > 0) { - bb_full_write(a_c_w, buf, count); + if (bb_full_write(a_c_w, buf, count) != count) + break; } close(f); } else { |