aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-12-21 18:08:21 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2020-12-21 18:44:08 +0100
commit3054213e87c87e6c3e6d760f3af0db79b43230fe (patch)
tree80fea3fe8df1b2fdeb5e69bf0998b2bb834d5afa
parent3326ba7d4c046ed4dcd4946cb354e18a99e139dc (diff)
osmo-gbproxy: Initialize all hash_maps
-rw-r--r--src/gbproxy/gb_proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index 53aecdf04..d84da1af6 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -1287,6 +1287,8 @@ int gbproxy_init_config(struct gbproxy_config *cfg)
/* by default we advertise 100% of the BSS-side capacity to _each_ SGSN */
cfg->pool.bvc_fc_ratio = 100;
hash_init(cfg->bss_nses);
+ hash_init(cfg->sgsn_nses);
+ hash_init(cfg->cells);
cfg->ctrg = rate_ctr_group_alloc(tall_sgsn_ctx, &global_ctrg_desc, 0);
if (!cfg->ctrg) {
LOGP(DGPRS, LOGL_ERROR, "Cannot allocate global counter group!\n");