aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-08-24 12:50:49 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-08-24 12:50:49 +0000
commit0631fa0b614e463c585162b065f56f31eeb13dfa (patch)
tree552f83aff222380319b2491f7816c5f976a01c21
parent82bc399e73ece054ac4b71a541f5d5a6776fbdd8 (diff)
downloadgnunet-0631fa0b614e463c585162b065f56f31eeb13dfa.tar.gz
gnunet-0631fa0b614e463c585162b065f56f31eeb13dfa.zip
fixing segfault caused by missing hashmap init
-rw-r--r--src/ats/ats_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ats/ats_api.c b/src/ats/ats_api.c
index ca0954173..aee7fd886 100644
--- a/src/ats/ats_api.c
+++ b/src/ats/ats_api.c
@@ -364,6 +364,7 @@ GNUNET_ATS_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
364 atc->alloc_cb = alloc_cb; 364 atc->alloc_cb = alloc_cb;
365 atc->alloc_cb_cls = alloc_cb_cls; 365 atc->alloc_cb_cls = alloc_cb_cls;
366 atc->peers = GNUNET_CONTAINER_multihashmap_create (256); 366 atc->peers = GNUNET_CONTAINER_multihashmap_create (256);
367 atc->notify_map = GNUNET_CONTAINER_multihashmap_create (256);
367 GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_OUT", 368 GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_OUT",
368 &atc->total_bps); 369 &atc->total_bps);
369 return atc; 370 return atc;