File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -958,10 +958,10 @@ int mme_config_parse_file(mme_config_t* config_pP) {
958958 // Convert to 3gpp PLMN (MCC and MNC) format
959959 // First 3 chars in astring is MCC next 3 or 2 chars is MNC
960960 memcpy (fed_mode_mcc , astring , MAX_MCC_LENGTH );
961- fed_mode_mcc [MAX_MCC_LENGTH ] = '\0' ; // null terminated string
962- n = strlen (astring ) - MAX_MCC_LENGTH ;
961+ fed_mode_mcc [MAX_MCC_LENGTH ] = '\0' ; // null terminated string
962+ n = strlen (astring ) - MAX_MCC_LENGTH ;
963963 memcpy (fed_mode_mnc , astring + MAX_MCC_LENGTH , n );
964- fed_mode_mnc [n ] = '\0' ; // null terminated string
964+ fed_mode_mnc [n ] = '\0' ; // null terminated string
965965 AssertFatal (
966966 strlen (fed_mode_mcc ) == MAX_MCC_LENGTH ,
967967 "Bad MCC length (%ld), it must be %u digit ex: 001\n" ,
Original file line number Diff line number Diff line change @@ -267,7 +267,8 @@ void sgw_s8_handle_s11_create_session_request(
267267 memcpy (
268268 new_sgw_eps_context -> imsi .digit , session_req_pP -> imsi .digit ,
269269 IMSI_BCD_DIGITS_MAX );
270- new_sgw_eps_context -> imsi64 = imsi64 ;
270+ new_sgw_eps_context -> imsi .length = session_req_pP -> imsi .length ;
271+ new_sgw_eps_context -> imsi64 = imsi64 ;
271272
272273 new_sgw_eps_context -> imsi_unauthenticated_indicator = 1 ;
273274 new_sgw_eps_context -> mme_teid_S11 = session_req_pP -> sender_fteid_for_cp .teid ;
You can’t perform that action at this time.
0 commit comments