X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=common%2Fhttp.c;h=33f443c0b685fa32f7d26fc6139c541acd424b9c;hb=302a260054ea38d3cb97be6d1a3010082c09265d;hp=0338905a662624f12707a8a3befc60714f21c710;hpb=2b6703ac37a2c0f17923535d68fdf0ac2debedea;p=doldaconnect.git diff --git a/common/http.c b/common/http.c index 0338905..33f443c 100644 --- a/common/http.c +++ b/common/http.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2007 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2007 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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;