aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-24 12:46:11 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-24 12:52:13 +0100
commita4370dd96947065be6ee976de2a71cc71ed87a61 (patch)
tree6cb9df236ec68da43799b8ccec007436c608f072 /openbsc/src
parent273f875c42d74da22b9da442367b9903b4c9c067 (diff)
gtphub: fix ares segfault: add missing initialization.
The struct gtphub_resolved_ggsn was not initialized properly, so that adding it to a list caused a segmentation fault.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/gprs/gtphub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c
index e86620fc..95bf7f79 100644
--- a/openbsc/src/gprs/gtphub.c
+++ b/openbsc/src/gprs/gtphub.c
@@ -1704,6 +1704,8 @@ void gtphub_resolved_ggsn(struct gtphub *hub, const char *apn_oi_str,
ggsn = talloc_zero(osmo_gtphub_ctx, struct gtphub_resolved_ggsn);
OSMO_ASSERT(ggsn);
+ INIT_LLIST_HEAD(&ggsn->entry);
+ expiring_item_init(&ggsn->expiry_entry);
ggsn->peer = pp;
gtphub_port_ref_count_inc(pp);