-trying to fix fragmentation / udp performance, not working yet
[oweals/gnunet.git] / src / transport / gnunet-service-transport.c
index f9a4c7b9ec889cec8858ed8163308aff053c00fd..da6812c96cc50472e00fbbab5de03ecd518754f0 100644 (file)
@@ -405,7 +405,7 @@ plugin_env_address_to_type (void *cls,
                 addrlen,
                 GNUNET_a2s(addr, addrlen));
     GNUNET_break (0);
-    return (const struct GNUNET_ATS_Information) ats;
+    return ats;
   }
   return GNUNET_ATS_address_get_type(GST_ats, addr, addrlen);
 }
@@ -579,6 +579,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     GNUNET_CRYPTO_rsa_key_free (GST_my_private_key);
     GST_my_private_key = NULL;
   }
+  GST_server = NULL;
 }
 
 
@@ -644,7 +645,8 @@ key_generation_cb (void *cls,
                         &neighbours_address_notification);
   GST_clients_start (GST_server);
   GST_validation_start ();
-  GNUNET_SERVER_resume (GST_server);
+  if (NULL != GST_server)
+    GNUNET_SERVER_resume (GST_server);
 }