mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	[paging] Do not use request after it was was destroyed..
Increment the counter before we call the remove request which is freeing the request...
This commit is contained in:
		@@ -208,11 +208,11 @@ static void paging_T3113_expired(void *data)
 | 
			
		||||
	sig_data.lchan	= NULL;
 | 
			
		||||
 | 
			
		||||
	/* must be destroyed before calling cbfn, to prevent double free */
 | 
			
		||||
	counter_inc(req->bts->network->stats.paging.expired);
 | 
			
		||||
	cbfn_param = req->cbfn_param;
 | 
			
		||||
	cbfn = req->cbfn;
 | 
			
		||||
	paging_remove_request(&req->bts->paging, req);
 | 
			
		||||
 | 
			
		||||
	counter_inc(req->bts->network->stats.paging.expired);
 | 
			
		||||
 | 
			
		||||
	dispatch_signal(SS_PAGING, S_PAGING_EXPIRED, &sig_data);
 | 
			
		||||
	if (cbfn)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user