diff options
Diffstat (limited to 'src/w32-glib-io.c')
-rw-r--r-- | src/w32-glib-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32-glib-io.c b/src/w32-glib-io.c index be73b41e..ff21c3d8 100644 --- a/src/w32-glib-io.c +++ b/src/w32-glib-io.c @@ -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; |