gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r15603 - gnunet/src/vpn


From: gnunet
Subject: [GNUnet-SVN] r15603 - gnunet/src/vpn
Date: Wed, 15 Jun 2011 09:15:37 +0200

Author: toelke
Date: 2011-06-15 09:15:37 +0200 (Wed, 15 Jun 2011)
New Revision: 15603

Modified:
   gnunet/src/vpn/gnunet-daemon-vpn.c
Log:
update the cost later

Modified: gnunet/src/vpn/gnunet-daemon-vpn.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.c  2011-06-15 07:15:36 UTC (rev 15602)
+++ gnunet/src/vpn/gnunet-daemon-vpn.c  2011-06-15 07:15:37 UTC (rev 15603)
@@ -357,9 +357,6 @@
          }
 
        struct map_entry* map_entry = 
GNUNET_CONTAINER_multihashmap_get(hashmap, &key);
-        GNUNET_CONTAINER_heap_update_cost (heap, map_entry->heap_node,
-                                           GNUNET_TIME_absolute_get 
().abs_value);
-
        uint16_t offset = ntohs(pkt->addroffset);
 
        if (map_entry == NULL)
@@ -368,6 +365,10 @@
            return;
          }
 
+        GNUNET_CONTAINER_heap_update_cost (heap, map_entry->heap_node,
+                                           GNUNET_TIME_absolute_get 
().abs_value);
+
+
         unsigned short namelen = htons(map_entry->namelen);
        char* name = (char*)(map_entry + 1);
 




reply via email to

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