fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 26 Feb 2010 11:55:36 +0000 (11:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 26 Feb 2010 11:55:36 +0000 (11:55 +0000)
src/fs/fs_test_lib_data.conf
src/fs/gnunet-service-fs.c

index 7ca0166a162d0fdc761b44cc08cbbdad09ce4ade..e53e8a90c711a7710d56e453062d1a8768e7b6d4 100644 (file)
@@ -47,7 +47,7 @@ PORT = 43471
 HOSTNAME = localhost
 DEBUG = YES
 PREFIX = valgrind --tool=memcheck --leak-check=yes
-#BINARY = /home/grothoff/bin/gnunet-service-fs
+BINARY = /home/grothoff/bin/gnunet-service-fs
 #PREFIX = xterm -e gdb -x cmd --args 
 
 [testing]
index 926284123b0885d84e969c0d7a108a40926ab4da..27ab420a81363bf7bfd2006627c6d68d069834d0 100644 (file)
@@ -78,7 +78,7 @@ typedef void (*TransmissionContinuation)(void * cls,
 
 
 /**
- * Information we keep for each pending reply.  The
+ * Information we keep for each pending message (GET/PUT).  The
  * actual message follows at the end of this struct.
  */
 struct PendingMessage
@@ -842,7 +842,7 @@ handle_client_disconnect (void *cls,
   struct ClientResponseMessage *creply;
 
   if (client == NULL)
-    return; /* huh? is this allowed? */
+    return;
   prev = NULL;
   pos = client_list;
   while ( (NULL != pos) &&
@@ -1463,7 +1463,7 @@ transmit_reply_continuation (void *cls,
                             GNUNET_PEER_Id tpid)
 {
   struct PendingRequest *pr = cls;
-
+  
   switch (pr->type)
     {
     case GNUNET_DATASTORE_BLOCKTYPE_DBLOCK:
@@ -1955,13 +1955,13 @@ process_local_reply (void *cls,
   GNUNET_HashCode mhash;
   GNUNET_HashCode query;
   
-  pr->drq = NULL;
   if (NULL == key)
     {
 #if DEBUG_FS
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "Done processing local replies, forwarding request to other peers.\n");
 #endif
+      pr->drq = NULL;
       if (pr->client_request_list != NULL)
        GNUNET_SERVER_receive_done (pr->client_request_list->client_list->client, 
                                    GNUNET_YES);