Fix not checking initialization of S11 in MME. Fixed typo.

This commit is contained in:
Pedro Alvarez 2021-09-23 14:13:07 +01:00
parent 7155de91ca
commit 65a2b35f09
2 changed files with 6 additions and 2 deletions

View File

@ -122,8 +122,8 @@ int test_sctp_bind_error()
&sock, srsran::net_utils::socket_type::seqpacket, "1.1.1.1", 8000)); // Bogus IP address
// should not be able to bind
TESTASSERT(srsran::net_utils::sctp_init_socket(
&sock, srsran::net_utils::socket_type::seqpacket, "127.0.0.1", 8000)); // Bogus IP address
// should not be able to bind
&sock, srsran::net_utils::socket_type::seqpacket, "127.0.0.1", 8000)); // Good IP address
// should be able to bind
return SRSRAN_SUCCESS;
}

View File

@ -78,8 +78,12 @@ int s1ap::init(const s1ap_args_t& s1ap_args)
// Get pointer to GTP-C class
m_mme_gtpc = mme_gtpc::get_instance();
// Initialize S1-MME
m_s1mme = enb_listen();
if (m_s1mme == SRSRAN_ERROR) {
return SRSRAN_ERROR;
}
// Init PCAP
m_pcap_enable = s1ap_args.pcap_enable;