2006-01-03 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Tue, 3 Jan 2006 14:20:12 +0000 (14:20 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Tue, 3 Jan 2006 14:20:12 +0000 (14:20 +0000)
* w32-glib-io.c (_gpgme_io_close): Only close fd if there is no
channel for it.

gpgme/ChangeLog
gpgme/w32-glib-io.c

index 5030dd02e034472af570bcb62693d0269d2d1b77..3ca9302daae0509d23e9a17035b6df0191fe2e19 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-03  Marcus Brinkmann  <marcus@g10code.de>
+
+       * w32-glib-io.c (_gpgme_io_close): Only close fd if there is no
+       channel for it.
+
 2005-12-31  Marcus Brinkmann  <marcus@g10code.de>
 
        * w32-glib-io.c (find_channel): Set channel to unbuffered.
index 5c116603a20ee2927ac2ca9c41b7fbfc47dc07b9..7dd57402206c0f9751f172d33d109482e3d2a700 100644 (file)
@@ -287,8 +287,8 @@ _gpgme_io_close (int fd)
       g_io_channel_unref (chan);
       giochannel_table[fd] = NULL;
     }
-
-  _close (fd);
+  else
+    _close (fd);
 
   return 0;
 }