aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-4e62ea52d994deed44a0a5cfd15faa826cd39e85.tar.gz
gnunet-4e62ea52d994deed44a0a5cfd15faa826cd39e85.zip
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,
266 const char * addr_str; 266 const char * addr_str;
267 char *res; 267 char *res;
268 268
269 GNUNET_assert (NULL != plugin);
269 270
270 if (NULL == addr) 271 if (NULL == addr)
271 return NULL; 272 return NULL;
@@ -277,7 +278,6 @@ http_common_plugin_address_to_string (void *cls, char *plugin, const void *addr,
277 278
278 if (addr_str[ntohl(address->urlen) -1] != '\0') 279 if (addr_str[ntohl(address->urlen) -1] != '\0')
279 return NULL; 280 return NULL;
280
281 GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl(address->options), &address[1]); 281 GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl(address->options), &address[1]);
282 if (strlen(res) + 1 < 500) 282 if (strlen(res) + 1 < 500)
283 { 283 {