diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-04 15:42:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-04 15:42:52 +0000 |
commit | 3a80e42b78bc3210ab3e39b4ea2eebb3bff0d98f (patch) | |
tree | ee6b2806b3c9463ed8a4156a23261376c63cd5ca /src/namestore | |
parent | 92aac8cbaddca75373f65ff5a42cc938f8aa3183 (diff) | |
download | gnunet-3a80e42b78bc3210ab3e39b4ea2eebb3bff0d98f.tar.gz gnunet-3a80e42b78bc3210ab3e39b4ea2eebb3bff0d98f.zip |
-fix
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/namestore_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index 8f3d3c522..09b5b46e9 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, | |||
435 | return NULL; /* malformed */ | 435 | return NULL; /* malformed */ |
436 | vpn = data; | 436 | vpn = data; |
437 | GNUNET_CRYPTO_hash_to_enc (&vpn->peer, &s_peer); | 437 | GNUNET_CRYPTO_hash_to_enc (&vpn->peer, &s_peer); |
438 | if (0 == GNUNET_asprintf (&vpn_str, "%hu %s %s", | 438 | if (0 == GNUNET_asprintf (&vpn_str, "%u %s %s", |
439 | vpn->proto, | 439 | (unsigned int) ntohl (vpn->proto), |
440 | (const char*) &s_peer, | 440 | (const char*) &s_peer, |
441 | (const char*) &vpn[1])) | 441 | (const char*) &vpn[1])) |
442 | { | 442 | { |
443 | GNUNET_free (vpn_str); | 443 | GNUNET_free (vpn_str); |
444 | return NULL; | 444 | return NULL; |
445 | } | 445 | } |
446 | return vpn_str; | 446 | return vpn_str; |
447 | case GNUNET_DNSPARSER_TYPE_SRV: | 447 | case GNUNET_DNSPARSER_TYPE_SRV: |