-doxygen
[oweals/gnunet.git] / src / transport / gnunet-service-transport_plugins.c
index 4d162cf1f5dfeacb7946e0219179e8f6190a739f..83c062ec3715c7f94f1ec28bc5fb61af62bfe6eb 100644 (file)
@@ -160,6 +160,7 @@ GST_plugins_load (GNUNET_TRANSPORT_PluginReceiveCallback recv_cb,
       GNUNET_free (plug->short_name);
       GNUNET_free (plug->lib_name);
       GNUNET_free (plug);
+      continue;
     }
     fail = GNUNET_NO;
     if (NULL == plug->api->address_pretty_printer)
@@ -323,6 +324,7 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address)
 {
   struct GNUNET_TRANSPORT_PluginFunctions *api;
   static char unable_to_show[1024];
+  static const char *s;
 
   if (address == NULL)
   {
@@ -342,8 +344,8 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address)
                      address->transport_name);
     return unable_to_show;
   }
-  return api->address_to_string (NULL, address->address,
-                                 address->address_length);
+  return (NULL != (s = api->address_to_string (NULL, address->address,
+                                 address->address_length)) ? s : "<invalid>");
 }