aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2023-11-22 12:42:17 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2023-11-23 18:00:07 +0100
commit676777c5f905a7f07a962e6fd7b84505257fc254 (patch)
tree09f19e628a5987770cc461ecac3ae0bae1602d7a
parentff9c46cc61e69cf63180dea892ffae93db8a2608 (diff)
libgtp: Check for all successful create_pdp_conf causesdaniel/nitb-tests
-rw-r--r--TODO-RELEASE1
-rw-r--r--src/sgsn/sgsn_libgtp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/TODO-RELEASE b/TODO-RELEASE
index 1c5d61f56..bb4f90042 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -1 +1,2 @@
#component what description / commit summary line
+libgtp > 1.10 use gtp_cause_successful()
diff --git a/src/sgsn/sgsn_libgtp.c b/src/sgsn/sgsn_libgtp.c
index 0b6da6228..9edd0c60e 100644
--- a/src/sgsn/sgsn_libgtp.c
+++ b/src/sgsn/sgsn_libgtp.c
@@ -417,7 +417,7 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
}
/* Check for cause value if it was really successful */
- if (cause != GTPCAUSE_ACC_REQ) {
+ if (!gtp_cause_successful(cause)) {
reject_cause = cause_map(gtp2sm_cause_map, cause,
GSM_CAUSE_ACT_REJ_GGSN);
goto reject;