diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-08-24 00:58:26 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2019-08-24 00:58:26 +0200 |
commit | 736631aa7c50c338865f004c1ce4eeed8fc5828a (patch) | |
tree | f51816c3d0e807a1207330493e4b98e1da7f2fad | |
parent | a2efc532295b40e6016045c32c88dd4492029894 (diff) |
gprs_sgsn: sgsn_pdp_ctx_terminate: check llme before accessing its member
Change-Id: Ia392a24999308b88aebc24b59c00cd5b83d66df2
-rw-r--r-- | src/gprs/gprs_sgsn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gprs/gprs_sgsn.c b/src/gprs/gprs_sgsn.c index 9f02d5420..58e13b95f 100644 --- a/src/gprs/gprs_sgsn.c +++ b/src/gprs/gprs_sgsn.c @@ -447,7 +447,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)); |