aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2014-08-22 14:03:08 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2014-08-22 14:03:08 +0000
commit835ecdcc41a52e17fb4dc76fbd8a432384f4e193 (patch)
tree37e9ef3c9926d4b2e20616570bcd890e934d0157
parenta69220704bee50ad720dc799be708db5c9183952 (diff)
downloadgnunet-835ecdcc41a52e17fb4dc76fbd8a432384f4e193.tar.gz
gnunet-835ecdcc41a52e17fb4dc76fbd8a432384f4e193.zip
Do not realloc as this will render the pointers to ActiveContexts invalid.
-rw-r--r--src/dht/gnunet_dht_profiler.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c
index 24ec73921..3b6ea6b0c 100644
--- a/src/dht/gnunet_dht_profiler.c
+++ b/src/dht/gnunet_dht_profiler.c
@@ -1155,7 +1155,6 @@ test_run (void *cls,
1155 ac_cnt++; 1155 ac_cnt++;
1156 } 1156 }
1157 n_active = ac_cnt; 1157 n_active = ac_cnt;
1158 a_ac = GNUNET_realloc (a_ac, n_active * sizeof (struct ActiveContext));
1159 INFO ("Active peers: %u\n", n_active); 1158 INFO ("Active peers: %u\n", n_active);
1160 1159
1161 /* start DHT service on all peers */ 1160 /* start DHT service on all peers */