fix
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2009 13:35:08 +0000 (13:35 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2009 13:35:08 +0000 (13:35 +0000)
src/util/network.c

index 7039ff54aa8b8ac3feb95af4b4c3bdc62eb22e8a..b5e65de60069ea5532610d93e6448dcded56a9a2 100644 (file)
@@ -186,7 +186,7 @@ GNUNET_NETWORK_socket_accept (const struct GNUNET_NETWORK_Handle *desc,
 #ifndef MINGW\r
   if (ret->fd >= FD_SETSIZE)\r
     {\r
-      close (desc->fd);\r
+      close (ret->fd);\r
       GNUNET_free (ret);\r
       errno = EMFILE;\r
       return NULL;\r