Use proper e-mail address format everywhere.
[doldaconnect.git] / common / http.c
index 0338905..33f443c 100644 (file)
@@ -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 <fredrik@dolda2000.com>
  *  
  *  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;