diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-09-10 16:01:46 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2019-09-10 16:01:46 +0200 |
commit | 8e3766cd388b45b7457a1cd3bae45cc2c189d7aa (patch) | |
tree | 18b46325be7786bc3dae99fec72cccdfd1f1a8c1 /src/sgsn | |
parent | d7276bde55c8e7fff64fdec5de07f47ad1ac01cb (diff) |
sgsn_pdp_ctx_terminate: check llme before accessing
Change-Id: Ib4361cdc12f9c1674c89c6fafeeb52a3f42abe1d
Diffstat (limited to 'src/sgsn')
-rw-r--r-- | src/sgsn/gprs_sgsn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sgsn/gprs_sgsn.c b/src/sgsn/gprs_sgsn.c index 189f7bb0f..465a5fa4f 100644 --- a/src/sgsn/gprs_sgsn.c +++ b/src/sgsn/gprs_sgsn.c @@ -459,7 +459,8 @@ void sgsn_pdp_ctx_terminate(struct sgsn_pdp_ctx *pdp) if (pdp->mm->ran_type == MM_CTX_T_GERAN_Gb) { /* Force the deactivation of the SNDCP layer */ - sndcp_sm_deactivate_ind(&pdp->mm->gb.llme->lle[pdp->sapi], pdp->nsapi); + if (pdp->mm->gb.llme) + sndcp_sm_deactivate_ind(&pdp->mm->gb.llme->lle[pdp->sapi], pdp->nsapi); } memset(&sig_data, 0, sizeof(sig_data)); |