sgsn_pdp_ctx_terminate: check llme before accessing

Change-Id: Ib4361cdc12f9c1674c89c6fafeeb52a3f42abe1d
This commit is contained in:
Alexander Couzens 2019-09-10 16:01:46 +02:00
parent d7276bde55
commit 8e3766cd38
1 changed files with 2 additions and 1 deletions

View File

@ -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));