fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 27 Apr 2011 19:08:54 +0000 (19:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 27 Apr 2011 19:08:54 +0000 (19:08 +0000)
src/datastore/datastore_api.c

index 7818ed05cea86f06a1ca199c0260710558403d70..660e8f10237eeca4db154a0f644e8521924a3099 100644 (file)
@@ -1215,12 +1215,12 @@ process_result_message (void *cls,
          GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                      _("Failed to receive response from database.\n"));
          do_disconnect (h);
+         free_queue_entry (qe);
+         if (rc.proc != NULL)
+           rc.proc (rc.proc_cls,
+                    NULL, 0, NULL, 0, 0, 0, 
+                    GNUNET_TIME_UNIT_ZERO_ABS, 0);    
        }
-      free_queue_entry (qe);
-      if (rc.proc != NULL)
-       rc.proc (rc.proc_cls,
-                NULL, 0, NULL, 0, 0, 0, 
-                GNUNET_TIME_UNIT_ZERO_ABS, 0);    
       return;
     }
   if (ntohs(msg->type) == GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END)