summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-07-12 13:43:09 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-07-12 13:43:09 +0000
commit4e62ea52d994deed44a0a5cfd15faa826cd39e85 (patch)
tree95b63d77bd4868db57afe15e6c80ed0fda7b74f5 /src/transport/plugin_transport_http_common.c
parentf0af6efe99502662d6d1ba6596f7d4e6e1680424 (diff)
fix if plugin is loaded only in stub mode
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r--src/transport/plugin_transport_http_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index 912ba93d3..887aa6981 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -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)
{