libgtp: Check for all successful create_pdp_conf causes

Related: OS#6268
Change-Id: I11ce72908c2dfb983887e6c1db316fd7de42f027
This commit is contained in:
Daniel Willmann 2023-11-22 12:42:17 +01:00
parent ff9c46cc61
commit 676777c5f9
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1,2 @@
#component what description / commit summary line
libgtp > 1.10 use gtp_cause_successful()

View File

@ -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;