From a4370dd96947065be6ee976de2a71cc71ed87a61 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 24 Nov 2015 12:46:11 +0100 Subject: 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. --- openbsc/src/gprs/gtphub.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/gprs') diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index e86620fcc..95bf7f796 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); -- cgit v1.2.3