aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-06-24 20:07:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-06-24 20:07:11 +0000
commit8ec7e116dc68557ed07731519989594b93ac19c6 (patch)
treeba7801a8bf94f4152306695ed557142a07b3bbfd /src/ats
parent7ba01a86dfa31c8e4b97e099437fbbfba32d191b (diff)
downloadgnunet-8ec7e116dc68557ed07731519989594b93ac19c6.tar.gz
gnunet-8ec7e116dc68557ed07731519989594b93ac19c6.zip
fix testname
fix array out of bounds for test addresses
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/test_ats_normalization_update_quality.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/ats/test_ats_normalization_update_quality.c b/src/ats/test_ats_normalization_update_quality.c
index b6f378bc3..f7b656487 100644
--- a/src/ats/test_ats_normalization_update_quality.c
+++ b/src/ats/test_ats_normalization_update_quality.c
@@ -18,9 +18,8 @@
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20/** 20/**
21 * @file ats/test_ats_api_scheduling_update_address.c 21 * @file ats/test_ats_normalization_update_quality.c
22 * @brief test updating an address: add address, get and compare it, update it 22 * @brief test updating an address
23 * get it again and compre
24 * @author Christian Grothoff 23 * @author Christian Grothoff
25 * @author Matthias Wachs 24 * @author Matthias Wachs
26 */ 25 */
@@ -213,10 +212,10 @@ run (void *cls,
213 test_ats_info[1].value = htonl(20); 212 test_ats_info[1].value = htonl(20);
214 test_ats_count = 2; 213 test_ats_count = 2;
215 214
216 test_hello_address[3].peer = p[1].id; 215 test_hello_address[2].peer = p[1].id;
217 test_hello_address[3].transport_name = test_addr.plugin; 216 test_hello_address[2].transport_name = test_addr.plugin;
218 test_hello_address[3].address = test_addr.addr; 217 test_hello_address[2].address = test_addr.addr;
219 test_hello_address[3].address_length = test_addr.addr_len; 218 test_hello_address[2].address_length = test_addr.addr_len;
220 GNUNET_ATS_address_add (sched_ats, &test_hello_address[3], NULL, test_ats_info, test_ats_count); 219 GNUNET_ATS_address_add (sched_ats, &test_hello_address[3], NULL, test_ats_info, test_ats_count);
221 220
222 /* Request address */ 221 /* Request address */
@@ -227,11 +226,11 @@ run (void *cls,
227int 226int
228main (int argc, char *argv[]) 227main (int argc, char *argv[])
229{ 228{
230 if (0 != GNUNET_TESTING_peer_run ("test_ats_api_scheduling_update_address", 229 if (0 != GNUNET_TESTING_peer_run ("test_ats_normalization_update_quality",
231 "test_ats_api.conf", 230 "test_ats_api.conf",
232 &run, NULL)) 231 &run, NULL))
233 return 1; 232 return 1;
234 return ret; 233 return ret;
235} 234}
236 235
237/* end of file test_ats_api_scheduling_update_address.c */ 236/* end of file test_ats_normalization_update_quality.c*/