diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-06-28 22:21:57 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-06-28 22:21:57 +0200 |
commit | 8fc60f0eb57fc6d33584d90484555133a84c9c85 (patch) | |
tree | 0290220641f4bfb773bf0d6ce8fc965b246b5e41 /openbsc/src/gprs | |
parent | bd5c91276bdca0fc23fd0924b6d3382f40b33d06 (diff) |
[SGSN] Deactivate SNDCP entity on PDP CTX DEACT CONFIRM
Otherwise we will end up leaking memory in the SNDCP layer...
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r-- | openbsc/src/gprs/sgsn_libgtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c index 0eface358..b9c6605d4 100644 --- a/openbsc/src/gprs/sgsn_libgtp.c +++ b/openbsc/src/gprs/sgsn_libgtp.c @@ -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); |