aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/namestore_api_common.c')
-rw-r--r--src/namestore/namestore_api_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/namestore_api_common.c b/src/namestore/namestore_api_common.c
index f0f061d0f..73af0ead5 100644
--- a/src/namestore/namestore_api_common.c
+++ b/src/namestore/namestore_api_common.c
@@ -590,7 +590,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type,
590 ('\0' != cdata[data_size - 1]) ) 590 ('\0' != cdata[data_size - 1]) )
591 return NULL; /* malformed */ 591 return NULL; /* malformed */
592 vpn = data; 592 vpn = data;
593 GNUNET_CRYPTO_hash_to_enc (&vpn->peer, &s_peer); 593 GNUNET_CRYPTO_hash_to_enc (&vpn->peer.hashPubKey, &s_peer);
594 if (0 == GNUNET_asprintf (&vpn_str, "%u %s %s", 594 if (0 == GNUNET_asprintf (&vpn_str, "%u %s %s",
595 (unsigned int) ntohs (vpn->proto), 595 (unsigned int) ntohs (vpn->proto),
596 (const char*) &s_peer, 596 (const char*) &s_peer,
@@ -797,7 +797,7 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type,
797 *data_size = sizeof (struct GNUNET_TUN_GnsVpnRecord) + strlen (s_serv) + 1; 797 *data_size = sizeof (struct GNUNET_TUN_GnsVpnRecord) + strlen (s_serv) + 1;
798 *data = vpn = GNUNET_malloc (*data_size); 798 *data = vpn = GNUNET_malloc (*data_size);
799 if (GNUNET_OK != GNUNET_CRYPTO_hash_from_string ((char*)&s_peer, 799 if (GNUNET_OK != GNUNET_CRYPTO_hash_from_string ((char*)&s_peer,
800 &vpn->peer)) 800 &vpn->peer.hashPubKey))
801 { 801 {
802 GNUNET_free (vpn); 802 GNUNET_free (vpn);
803 *data_size = 0; 803 *data_size = 0;