gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5436 - in GNUnet/src/util: containers network


From: gnunet
Subject: [GNUnet-SVN] r5436 - in GNUnet/src/util: containers network
Date: Thu, 9 Aug 2007 01:47:28 -0600 (MDT)

Author: grothoff
Date: 2007-08-09 01:47:26 -0600 (Thu, 09 Aug 2007)
New Revision: 5436

Modified:
   GNUnet/src/util/containers/hashtable.c
   GNUnet/src/util/network/select.c
Log:
cleanup and fix

Modified: GNUnet/src/util/containers/hashtable.c
===================================================================
--- GNUnet/src/util/containers/hashtable.c      2007-08-09 07:34:48 UTC (rev 
5435)
+++ GNUnet/src/util/containers/hashtable.c      2007-08-09 07:47:26 UTC (rev 
5436)
@@ -245,7 +245,7 @@
   while(pair)
     {
       if (pair->keylen == keylen)
-        if (memcmp(key, pair->key, key) == 0)
+        if (memcmp(key, pair->key, keylen) == 0)
           break;
       pair = pair->next;
     }

Modified: GNUnet/src/util/network/select.c
===================================================================
--- GNUnet/src/util/network/select.c    2007-08-09 07:34:48 UTC (rev 5435)
+++ GNUnet/src/util/network/select.c    2007-08-09 07:47:26 UTC (rev 5436)
@@ -551,7 +551,10 @@
               if (sh->socket_quota <= 0)
                 {
                   SHUTDOWN (s, SHUT_WR);
-                  CLOSE (s);
+                  if (0 != CLOSE (s))
+                   GE_LOG_STRERROR (sh->ectx,
+                                    GE_WARNING | GE_ADMIN | GE_BULK,
+                                    "close");
                   s = -1;
                   continue;
                 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]