* debug.h (TRACE_SUC6): New macro.
authorMarcus Brinkmann <mb@g10code.com>
Thu, 10 Jun 2010 13:41:12 +0000 (13:41 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 10 Jun 2010 13:41:12 +0000 (13:41 +0000)
src/w32-glib-io.c

index be73b41ec8c4abb3a92a58cab926be611335e351..ff21c3d8d20d63eac14c4b8abf4aaca44ba0472b 100644 (file)
@@ -110,7 +110,7 @@ static struct
 static GIOChannel *
 find_channel (int fd)
 {
-  if (fd < 0 || fd >= MAX_SLAFD)
+  if (fd < 0 || fd >= MAX_SLAFD || !giochannel_table[fd].used)
     return NULL;
 
   return giochannel_table[fd].chan;