summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-05 12:22:52 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-05 12:22:52 +0000
commit05b5d18cc026acc99981b5cd0fb8d9711943915c (patch)
treedfb5f7f076cbb559b846b582bc1ba762e6afcc1e /src
parentf215983130428573f83a99628f8e450c2a761f65 (diff)
fix
Diffstat (limited to 'src')
-rw-r--r--src/ats/gnunet-service-ats_addresses.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c
index 332b4edd1..8eb86ac11 100644
--- a/src/ats/gnunet-service-ats_addresses.c
+++ b/src/ats/gnunet-service-ats_addresses.c
@@ -459,8 +459,9 @@ disassemble_ats_information (struct ATS_Address *dest,
if (add_atsi_count > 0)
{
/* Extend ats performance information */
+
tmp_atsi = GNUNET_malloc ((dest->atsi_count + add_atsi_count) *
- sizeof (sizeof (struct GNUNET_ATS_Information)));
+ (sizeof (struct GNUNET_ATS_Information)));
memcpy (tmp_atsi, dest->atsi, dest->atsi_count * sizeof (struct GNUNET_ATS_Information));
memcpy (&tmp_atsi[dest->atsi_count], add_atsi, add_atsi_count * sizeof (struct GNUNET_ATS_Information));
GNUNET_free (dest->atsi);