projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure stdlib.h is always included before dmalloc.h to avoid problems
[oweals/busybox.git]
/
networking
/
httpd.c
diff --git
a/networking/httpd.c
b/networking/httpd.c
index a02b63a381c1ffcbbeb0fa92a20509df47942d64..9b36101d799cabb71567d6cad4b46a2a6f3ab629 100644
(file)
--- 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);