summaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index a02b63a..9b36101 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1271,7 +1271,9 @@ static int sendCgi(const char *url,
}
firstLine = 0;
}
- bb_full_write(s, rbuf, count);
+ if (bb_full_write(s, rbuf, count) != count)
+ break;
+
#ifdef DEBUG
if (config->debugHttpd)
fprintf(stderr, "cgi read %d bytes\n", count);