Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
htparser: Remember to properly make ssl-openssl.c conditional.
[ashd.git]
/
src
/
htpipe.c
diff --git
a/src/htpipe.c
b/src/htpipe.c
index
7bfde75
..
27e5480
100644
(file)
--- a/
src/htpipe.c
+++ b/
src/htpipe.c
@@
-104,6
+104,7
@@
static void runserver(int lsk, int ch)
struct hthead *req;
ncl = 0;
struct hthead *req;
ncl = 0;
+ cl = NULL;
while(1) {
struct pollfd pfd[ncl + 1];
for(i = 0; i < ncl; i++) {
while(1) {
struct pollfd pfd[ncl + 1];
for(i = 0; i < ncl; i++) {
@@
-123,6
+124,7
@@
static void runserver(int lsk, int ch)
if((rfd = recvreq(cl[i], &req)) < 0) {
if(errno != 0)
flog(LOG_ERR, "htpipe: error from client: %s", strerror(errno));
if((rfd = recvreq(cl[i], &req)) < 0) {
if(errno != 0)
flog(LOG_ERR, "htpipe: error from client: %s", strerror(errno));
+ close(cl[i]);
cl[i] = -1;
} else {
if(sendreq(ch, req, rfd)) {
cl[i] = -1;
} else {
if(sendreq(ch, req, rfd)) {