From 4e62ea52d994deed44a0a5cfd15faa826cd39e85 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 12 Jul 2013 13:43:09 +0000 Subject: fix if plugin is loaded only in stub mode --- src/transport/plugin_transport_http_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/transport/plugin_transport_http_common.c') 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) { -- cgit v1.2.3