aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-04 15:42:52 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-04 15:42:52 +0000
commit64bab8f30fdc449e172a34882ce93495e4985970 (patch)
treeee6b2806b3c9463ed8a4156a23261376c63cd5ca /src/namestore
parent3d304f1120bb515aa04f4a08920a4d5ec6677e47 (diff)
-fix
git-svn-id: https://gnunet.org/svn/gnunet@25241 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/namestore_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c
index 8f3d3c522b..09b5b46e97 100644
--- a/src/namestore/namestore_common.c
+++ b/src/namestore/namestore_common.c
@@ -435,13 +435,13 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type,
return NULL; /* malformed */
vpn = data;
GNUNET_CRYPTO_hash_to_enc (&vpn->peer, &s_peer);
- if (0 == GNUNET_asprintf (&vpn_str, "%hu %s %s",
- vpn->proto,
+ if (0 == GNUNET_asprintf (&vpn_str, "%u %s %s",
+ (unsigned int) ntohl (vpn->proto),
(const char*) &s_peer,
(const char*) &vpn[1]))
{
- GNUNET_free (vpn_str);
- return NULL;
+ GNUNET_free (vpn_str);
+ return NULL;
}
return vpn_str;
case GNUNET_DNSPARSER_TYPE_SRV: