fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/14826
Change subject: sgsn_mm_ctx_find_ggsn_ctx(): fix: always set gsm_cause ...................................................................... sgsn_mm_ctx_find_ggsn_ctx(): fix: always set gsm_cause GCC 9 complains that variable 'gsm_cause' in do_act_pdp_req() may be uninitialized. This may happen if sgsn_mm_ctx_find_ggsn_ctx() would return NULL due to no static GGSN configured. Change-Id: I09c608045dd35b9898b82e236a306ab9a6c2c0b9 --- M src/gprs/gprs_sgsn.c 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/26/14826/1 diff --git a/src/gprs/gprs_sgsn.c b/src/gprs/gprs_sgsn.c index fae09ae..9a5de41 100644 --- a/src/gprs/gprs_sgsn.c +++ b/src/gprs/gprs_sgsn.c @@ -920,7 +920,8 @@ LOGMMCTXP(LOGL_NOTICE, mmctx, "No static GGSN configured. Selected APN '%s'\n", selected_apn_str); - return NULL; + *gsm_cause = GSM_CAUSE_MISSING_APN; + return NULL; } LOGMMCTXP(LOGL_INFO, mmctx, -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/14826 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I09c608045dd35b9898b82e236a306ab9a6c2c0b9 Gerrit-Change-Number: 14826 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <axilira...@gmail.com> Gerrit-MessageType: newchange