From: Matthias Wachs Date: Thu, 22 Mar 2012 17:52:00 +0000 (+0000) Subject: - fix X-Git-Tag: initial-import-from-subversion-38251~14154 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9393482faf10c55fc3a28d160afd23844c44be45;p=oweals%2Fgnunet.git - fix --- diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index 0b6f4eb93..117d96a57 100644 --- a/src/namestore/namestore_common.c +++ b/src/namestore/namestore_common.c @@ -419,6 +419,7 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type, if (1 != inet_pton (AF_INET6, s, &value_aaaa)) return GNUNET_SYSERR; *data = GNUNET_malloc (sizeof (struct in6_addr)); + *data_size = sizeof (struct in6_addr); memcpy (*data, &value_aaaa, sizeof (value_aaaa)); return GNUNET_OK; case GNUNET_NAMESTORE_TYPE_PKEY: