summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-06-27 15:16:32 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-06-27 15:16:32 +0000
commit2f50296dd6848542ee4a8dd046835be9341f190f (patch)
tree6762d927a891f2a97e82f3b46433a8c26a3d9d95 /src/transport/plugin_transport_http_common.c
parent3bacc8e2efa8271ad02802d2c1b580401eaa5bb3 (diff)
fix printing
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,
if (addr_str[ntohl(address->urlen) -1] != '\0')
return NULL;
- GNUNET_asprintf (&res, "%s.%u.%s", plugin, address->options, &address[1]);
+ GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl(address->options), &address[1]);
if (strlen(res) + 1 < 500)
{
memcpy (rbuf, res, strlen(res) + 1);