gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6224 - GNUnet/src/applications/fs/gap


From: gnunet
Subject: [GNUnet-SVN] r6224 - GNUnet/src/applications/fs/gap
Date: Sun, 10 Feb 2008 00:02:46 -0700 (MST)

Author: grothoff
Date: 2008-02-10 00:02:45 -0700 (Sun, 10 Feb 2008)
New Revision: 6224

Modified:
   GNUnet/src/applications/fs/gap/gap.c
Log:
fix

Modified: GNUnet/src/applications/fs/gap/gap.c
===================================================================
--- GNUnet/src/applications/fs/gap/gap.c        2008-02-10 06:55:28 UTC (rev 
6223)
+++ GNUnet/src/applications/fs/gap/gap.c        2008-02-10 07:02:45 UTC (rev 
6224)
@@ -193,7 +193,6 @@
   int ret;
 
   GNUNET_GE_ASSERT (NULL, query_count > 0);
-  peer = GNUNET_FS_PT_intern (respond_to);
   GNUNET_mutex_lock (GNUNET_FS_lock);
   index = get_table_index (&queries[0]);
   now = GNUNET_get_time ();
@@ -256,7 +255,11 @@
 
   /* if not found or not unique, forward */
   if ((ret != 1) || (type != GNUNET_ECRS_BLOCKTYPE_DATA))
-    GNUNET_FS_PLAN_request (NULL, peer, rl);
+    {
+      peer = GNUNET_FS_PT_intern (respond_to);
+      GNUNET_FS_PLAN_request (NULL, peer, rl);
+      GNUNET_FS_PT_change_rc (peer, -1);
+    }
 
   GNUNET_mutex_unlock (GNUNET_FS_lock);
 }





reply via email to

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