X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=common%2Fhttp.c;fp=common%2Fhttp.c;h=8190f2d9730403d3f826265aa9190cf52cfa4792;hb=c340c8abc4f8211721b6448f56570109aead3935;hp=0338905a662624f12707a8a3befc60714f21c710;hpb=de760c32656215930e4fc83830a5bdedbb185d73;p=doldaconnect.git diff --git a/common/http.c b/common/http.c index 0338905..8190f2d 100644 --- a/common/http.c +++ b/common/http.c @@ -163,6 +163,8 @@ int htpollflags(struct htconn *cn) { int ret; + if(cn->fd == -1) + return(0); ret = POLLIN; if((cn->state == STATE_SYN) || (cn->outbufdata > 0)) ret |= POLLOUT;