From 9393482faf10c55fc3a28d160afd23844c44be45 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 22 Mar 2012 17:52:00 +0000 Subject: [PATCH] - fix --- src/namestore/namestore_common.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.25.1