diff options
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r-- | src/transport/plugin_transport_http_common.c | 2 |
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 | { |