- fix
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 22 Mar 2012 17:52:00 +0000 (17:52 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 22 Mar 2012 17:52:00 +0000 (17:52 +0000)
src/namestore/namestore_common.c

index 0b6f4eb931758ad10f65c0d2b59948405269b770..117d96a57f456c42b5b2872c961f81d6dd4f03ca 100644 (file)
@@ -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: