[SGSN] Deactivate SNDCP entity on PDP CTX DEACT CONFIRM

Otherwise we will end up leaking memory in the SNDCP layer...
This commit is contained in:
Harald Welte 2010-06-28 22:21:57 +02:00
parent bd5c91276b
commit 8fc60f0eb5
1 changed files with 3 additions and 0 deletions

View File

@ -287,6 +287,9 @@ static int delete_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
DEBUGP(DGPRS, "Received DELETE PDP CTX CONF, cause=%d(%s)\n",
cause, get_value_string(gtp_cause_strs, cause));
/* Deactivate the SNDCP layer */
sndcp_sm_deactivate_ind(&pctx->mm->llme->lle[pctx->sapi], pctx->nsapi);
/* Confirm deactivation of PDP context to MS */
rc = gsm48_tx_gsm_deact_pdp_acc(pctx);