mirror of
				https://github.com/open5gs/open5gs.git
				synced 2025-11-03 21:43:25 +00:00 
			
		
		
		
	Fix the bug in building TAU accept message (#29)
- TAU accept should be integrity protected
This commit is contained in:
		@@ -333,6 +333,10 @@ status_t emm_build_tau_accept(pkbuf_t **emmbuf, mme_ue_t *mme_ue)
 | 
			
		||||
    d_assert(mme_ue, return CORE_ERROR,);
 | 
			
		||||
 | 
			
		||||
    memset(&message, 0, sizeof(message));
 | 
			
		||||
    message.h.security_header_type = 
 | 
			
		||||
        NAS_SECURITY_HEADER_INTEGRITY_PROTECTED_AND_CIPHERED;
 | 
			
		||||
    message.h.protocol_discriminator = NAS_PROTOCOL_DISCRIMINATOR_EMM;
 | 
			
		||||
 | 
			
		||||
    message.emm.h.protocol_discriminator = NAS_PROTOCOL_DISCRIMINATOR_EMM;
 | 
			
		||||
    message.emm.h.message_type = NAS_TRACKING_AREA_UPDATE_ACCEPT;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -391,7 +391,7 @@ status_t nas_send_tau_accept(
 | 
			
		||||
    status_t rv;
 | 
			
		||||
    pkbuf_t *emmbuf = NULL;
 | 
			
		||||
 | 
			
		||||
    d_assert(mme_ue, return CORE_ERROR, "Null param");
 | 
			
		||||
    d_assert(mme_ue, return CORE_ERROR,);
 | 
			
		||||
 | 
			
		||||
    d_trace(3, "[EMM] Tracking area update accept\n");
 | 
			
		||||
    d_trace(5, "    IMSI[%s]\n", mme_ue->imsi_bcd);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user