If an aircraft accidentally enters restricted airspace, air traffic controllers will immediately contact the pilot to guide them out of the area. Depending on the situation, there could be legal consequences, but the primary focus is always on ensuring safety and redirecting the aircraft to a safe path.