aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
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 5830ab63c..257273161 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -277,7 +277,7 @@ http_common_plugin_address_to_string (void *cls, char *plugin, const void *addr,
277 if (addr_str[ntohl(address->urlen) -1] != '\0') 277 if (addr_str[ntohl(address->urlen) -1] != '\0')
278 return NULL; 278 return NULL;
279 279
280 GNUNET_asprintf (&res, "%s.%u.%s", plugin, address->options, &address[1]); 280 GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl(address->options), &address[1]);
281 if (strlen(res) + 1 < 500) 281 if (strlen(res) + 1 < 500)
282 { 282 {
283 memcpy (rbuf, res, strlen(res) + 1); 283 memcpy (rbuf, res, strlen(res) + 1);