diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-05 12:22:52 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-05 12:22:52 +0000 |
commit | 05b5d18cc026acc99981b5cd0fb8d9711943915c (patch) | |
tree | dfb5f7f076cbb559b846b582bc1ba762e6afcc1e | |
parent | f215983130428573f83a99628f8e450c2a761f65 (diff) | |
download | gnunet-05b5d18cc026acc99981b5cd0fb8d9711943915c.tar.gz gnunet-05b5d18cc026acc99981b5cd0fb8d9711943915c.zip |
fix
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 3 |
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, | |||
459 | if (add_atsi_count > 0) | 459 | if (add_atsi_count > 0) |
460 | { | 460 | { |
461 | /* Extend ats performance information */ | 461 | /* Extend ats performance information */ |
462 | |||
462 | tmp_atsi = GNUNET_malloc ((dest->atsi_count + add_atsi_count) * | 463 | tmp_atsi = GNUNET_malloc ((dest->atsi_count + add_atsi_count) * |
463 | sizeof (sizeof (struct GNUNET_ATS_Information))); | 464 | (sizeof (struct GNUNET_ATS_Information))); |
464 | memcpy (tmp_atsi, dest->atsi, dest->atsi_count * sizeof (struct GNUNET_ATS_Information)); | 465 | memcpy (tmp_atsi, dest->atsi, dest->atsi_count * sizeof (struct GNUNET_ATS_Information)); |
465 | memcpy (&tmp_atsi[dest->atsi_count], add_atsi, add_atsi_count * sizeof (struct GNUNET_ATS_Information)); | 466 | memcpy (&tmp_atsi[dest->atsi_count], add_atsi, add_atsi_count * sizeof (struct GNUNET_ATS_Information)); |
466 | GNUNET_free (dest->atsi); | 467 | GNUNET_free (dest->atsi); |