[hamradio-commits] [dump1090] 274/389: antirez
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:04 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 24080a22b1cfa17ecf76a07d60205210b1b89952
Author: Malcolm Robb <Support at ATTAvionics.com>
Date: Sat Feb 22 22:35:42 2014 +0000
antirez
Free the client on best effort write(2) short write
---
net_io.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net_io.c b/net_io.c
index 1ff16b1..2ff6c94 100644
--- a/net_io.c
+++ b/net_io.c
@@ -737,7 +737,8 @@ int handleHTTPRequest(struct client *c, char *p) {
}
// Send header and content.
- if (write(c->fd, hdr, hdrlen) == -1 || write(c->fd, content, clen) == -1) {
+ if ( (write(c->fd, hdr, hdrlen) != hdrlen)
+ || (write(c->fd, content, clen) != clen) ) {
free(content);
return 1;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list