fix if plugin is loaded only in stub mode
[oweals/gnunet.git] / src / transport / plugin_transport_http_common.c
index 912ba93d3fed6cd4b579f0991a75d43d7bca42c4..887aa69814e1423b6e16cc960049316902a83c66 100644 (file)
@@ -266,6 +266,7 @@ http_common_plugin_address_to_string (void *cls, char *plugin, const void *addr,
   const char * addr_str;
   char *res;
 
+  GNUNET_assert (NULL != plugin);
 
   if (NULL == addr)
       return NULL;
@@ -277,7 +278,6 @@ http_common_plugin_address_to_string (void *cls, char *plugin, const void *addr,
 
   if (addr_str[ntohl(address->urlen) -1] != '\0')
     return NULL;
-
   GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl(address->options), &address[1]);
   if (strlen(res) + 1 < 500)
   {