diff options
authorDaniel Willmann <dwillmann@sysmocom.de>2016-02-03 18:53:29 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-02-04 13:17:02 +0100
commit134a7752fd204bb9692e8f9c5591f56eaaa23e2e (patch)
parent8ddb6805a9d0c611f81033c038b0a4773a4c494e (diff)
gtp: Pass pdp along when calling gtp_req() in gtp_update_context()
With no pdp parameter gtp_req() will send the packet to TEID 0 which is not what we want. When trying to modify an established pdp context the correct TEID of that context must be used.
1 files changed, 1 insertions, 1 deletions
diff --git a/gtp/gtp.c b/gtp/gtp.c
index be53b5e..ccf2c81 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -1872,7 +1872,7 @@ int gtp_update_context(struct gsn_t *gsn, struct pdp_t *pdp, void *cbp,
gtpie_tlv(&packet, &length, GTP_MAX, GTPIE_OMC_ID,
pdp->omcid.l, pdp->omcid.v);
- gtp_req(gsn, pdp->version, NULL, &packet, length, inetaddr, cbp);
+ gtp_req(gsn, pdp->version, pdp, &packet, length, inetaddr, cbp);
return 0;