gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r7715 - GNUnet/src/applications/fs/gap
Date: Fri, 19 Sep 2008 00:13:04 -0600 (MDT)

Author: grothoff
Date: 2008-09-19 00:13:04 -0600 (Fri, 19 Sep 2008)
New Revision: 7715

Modified:
   GNUnet/src/applications/fs/gap/fs_dht.c
Log:
fixing #1426

Modified: GNUnet/src/applications/fs/gap/fs_dht.c
===================================================================
--- GNUnet/src/applications/fs/gap/fs_dht.c     2008-09-19 06:09:38 UTC (rev 
7714)
+++ GNUnet/src/applications/fs/gap/fs_dht.c     2008-09-19 06:13:04 UTC (rev 
7715)
@@ -170,13 +170,17 @@
 {
   struct ActiveRequestRecords *record;
   GNUNET_CronTime now;
+  struct GNUNET_DHT_GetHandle * h;
 
   if (dht == NULL)
     return;
+  h = dht->get_start (type, query, &response_callback, record);
+  if (h == NULL)
+    return; /* failed in DHT */
   now = GNUNET_get_time ();
   record = GNUNET_malloc (sizeof (struct ActiveRequestRecords));
   record->end_time = now + GNUNET_GAP_MAX_DHT_DELAY;
-  record->handle = dht->get_start (type, query, &response_callback, record);
+  record->handle = h;
   record->type = type;
   GNUNET_mutex_lock (GNUNET_FS_lock);
   record->next = records;





reply via email to

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