lib/gtp/xact: Fix rx of SGSN Context Response

This commit is contained in:
Pau Espin 2024-01-03 15:40:56 +01:00 committed by Sukchan Lee
parent ad2154ac2a
commit 389ccaed16
1 changed files with 6 additions and 3 deletions

View File

@ -655,9 +655,12 @@ int ogs_gtp_xact_commit(ogs_gtp_xact_t *xact)
break;
case GTP_XACT_INTERMEDIATE_STAGE:
ogs_expect(0);
ogs_gtp_xact_delete(xact);
return OGS_ERROR;
if (xact->step != 2) {
ogs_error("invalid step[%d]", xact->step);
ogs_gtp_xact_delete(xact);
return OGS_ERROR;
}
return OGS_OK;
case GTP_XACT_FINAL_STAGE:
if (xact->step != 2 && xact->step != 3) {