[SMF] fix the crash in VoLTE test (#1383)

This commit is contained in:
Sukchan Lee 2022-02-23 20:31:28 +09:00
parent 5ad1b188e4
commit 953a7321c6
1 changed files with 9 additions and 5 deletions

View File

@ -1105,12 +1105,16 @@ void smf_epc_n4_handle_session_modification_response(
}
} else if (flags & OGS_PFCP_MODIFY_ACTIVATE) {
/* SMF send Update PDP Context Response (GTPv1C) to SGSN */
if (gtp_xact->gtp_version == 1) {
bearer = gtp_xact->data;
smf_gtp1_send_update_pdp_context_response(bearer, gtp_xact);
if (gtp_xact) {
/* SMF send Update PDP Context Response (GTPv1C) to SGSN */
if (gtp_xact->gtp_version == 1) {
bearer = gtp_xact->data;
smf_gtp1_send_update_pdp_context_response(bearer, gtp_xact);
} else {
/* TODO: SMF send Modify Bearer Response (GTPv2C) to SGWC */
}
} else {
/* TODO: SMF send Modify Bearer Response (GTPv2C) to SGWC */
/* Nothing */
}
}
}