small stability fixes that were causing crashes in Bokondini (#323)

This commit is contained in:
Spencer Sevilla
2019-12-12 20:25:52 -08:00
committed by Sukchan Lee
parent b7360d37d4
commit b86658e173
3 changed files with 49 additions and 49 deletions

View File

@@ -253,7 +253,7 @@ void nas_send_detach_accept(mme_ue_t *mme_ue)
if (mme_ue->nas_eps.detach.switch_off == 0) {
int rv;
emmbuf = emm_build_detach_accept(mme_ue);
ogs_expect(emmbuf);
ogs_expect_or_return(emmbuf);
rv = nas_send_to_downlink_nas_transport(mme_ue, emmbuf);
ogs_expect(rv == OGS_OK);

View File

@@ -64,7 +64,7 @@ ogs_pkbuf_t *nas_security_encode(
if (mme_ue->selected_int_algorithm == 0)
integrity_protected = 0;
if (ciphered || integrity_protected) {
// if (ciphered || integrity_protected) {
ogs_nas_security_header_t h;
ogs_pkbuf_t *new = NULL;
@@ -110,11 +110,11 @@ ogs_pkbuf_t *nas_security_encode(
mme_ue->security_context_available = 1;
return new;
}
// }
ogs_error("Invalid param : type[%d] ciphered[%d] integrity_protected[%d]",
message->h.security_header_type, ciphered, integrity_protected);
return NULL;
// ogs_error("Invalid param : type[%d] ciphered[%d] integrity_protected[%d]",
// message->h.security_header_type, ciphered, integrity_protected);
// return NULL;
}
int nas_security_decode(mme_ue_t *mme_ue,

View File

@@ -466,7 +466,7 @@ void s1ap_handle_initial_context_setup_response(
ogs_assert(ENB_UE_S1AP_ID);
enb_ue = enb_ue_find_by_enb_ue_s1ap_id(enb, *ENB_UE_S1AP_ID);
ogs_assert(enb_ue);
ogs_expect_or_return(enb_ue);
mme_ue = enb_ue->mme_ue;
ogs_assert(mme_ue);