(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 23 Apr 2010 09:14:49 +0000 (09:14 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 23 Apr 2010 09:14:49 +0000 (09:14 +0000)
src/hostlist/hostlist-client.c

index 2f66df95d6d89d264bbc9d53ea19c242f73a4ae2..141e904c4e93f30d6701d11699c8eed6fae44eb1 100644 (file)
@@ -639,6 +639,23 @@ clean_up ()
 {
   CURLMcode mret;
 
+  if ( ( testing_hostlist == GNUNET_YES ) && ( GNUNET_NO == download_successful) && (NULL != hostlist_to_test))
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                _("Advertised hostlist with URI `%s' could not be downloaded. Advertised URI gets dismissed.\n"),hostlist_to_test->hostlist_uri);
+  }
+
+  if ( testing_hostlist == GNUNET_YES )
+    {
+    testing_hostlist = GNUNET_NO;
+    }
+  if ( NULL != hostlist_to_test)
+  {
+    GNUNET_free (hostlist_to_test);
+    hostlist_to_test = NULL;
+  }
+
+
   if (multi != NULL)
     {
       mret = curl_multi_remove_handle (multi, curl);