aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/sgsn_libgtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs/sgsn_libgtp.c')
-rw-r--r--src/gprs/sgsn_libgtp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gprs/sgsn_libgtp.c b/src/gprs/sgsn_libgtp.c
index 23b881100..38133971b 100644
--- a/src/gprs/sgsn_libgtp.c
+++ b/src/gprs/sgsn_libgtp.c
@@ -314,10 +314,10 @@ struct sgsn_pdp_ctx *sgsn_create_pdp_ctx(struct sgsn_ggsn_ctx *ggsn,
/* SGSN wants to delete a PDP context */
int sgsn_delete_pdp_ctx(struct sgsn_pdp_ctx *pctx)
{
- LOGPDPCTXP(LOGL_ERROR, pctx, "Delete PDP Context\n");
+ LOGPDPCTXP(LOGL_INFO, pctx, "Delete PDP Context\n");
/* FIXME: decide if we need teardown or not ! */
- return gtp_delete_context_req(pctx->ggsn->gsn, pctx->lib, pctx, 1);
+ return gtp_delete_context_req2(pctx->ggsn->gsn, pctx->lib, pctx, 1);
}
struct cause_map {
@@ -573,10 +573,6 @@ static int delete_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
"is not available\n");
}
- /* unlink the now non-existing library handle from the pdp
- * context */
- pctx->lib = NULL;
-
sgsn_pdp_ctx_free(pctx);
return rc;