mirror of
				https://github.com/open5gs/open5gs.git
				synced 2025-11-03 21:43:25 +00:00 
			
		
		
		
	NULL-pointer sgw_ue context is accessed (#18)
This commit is contained in:
		@@ -212,11 +212,10 @@ static int _gtpv1_u_recv_cb(sock_id sock, void *data)
 | 
			
		||||
                d_assert(bearer->sess->sgw_ue, pkbuf_free(pkbuf); return 0,
 | 
			
		||||
                        "SGW_UE  is NULL");
 | 
			
		||||
 | 
			
		||||
                d_trace(3, "[SGW] S1U PATH deactivated : STATE[0x%x]\n",
 | 
			
		||||
                        SGW_GET_UE_STATE(sgw_ue));
 | 
			
		||||
 | 
			
		||||
                sgw_ue = bearer->sess->sgw_ue;
 | 
			
		||||
 | 
			
		||||
                d_trace(3, "[SGW] S1U PATH deactivated : STATE[0x%x]\n",
 | 
			
		||||
                        SGW_GET_UE_STATE(sgw_ue));
 | 
			
		||||
                if ((SGW_GET_UE_STATE(sgw_ue) & SGW_S1U_INACTIVE))
 | 
			
		||||
                {
 | 
			
		||||
                    d_trace(5, "    SGW-S1U Inactive\n");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user