mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	ari_websockets: Fix frack if ARI config fails to load.
ari_ws_session_registry_dtor() wasn't checking that the container was valid before running ao2_callback on it to shutdown registered sessions.
This commit is contained in:
		
				
					committed by
					
						![github-actions[bot]](/avatar/af2ab225b7c0eec44a8d0eba6b5c869a?size=40) github-actions[bot]
						github-actions[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							3d5ae0b5e1
						
					
				
				
					commit
					4620e76012
				
			| @@ -697,6 +697,10 @@ static int ari_ws_session_shutdown_cb(void *ari_ws_session, void *arg, int flags | ||||
|  | ||||
| static void ari_ws_session_registry_dtor(void) | ||||
| { | ||||
| 	if (!ari_ws_session_registry) { | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	ao2_callback(ari_ws_session_registry, OBJ_MULTIPLE | OBJ_NODATA, | ||||
| 		ari_ws_session_shutdown_cb, NULL); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user