diff options
-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); |