Passenger anomaly is a condition in which a passenger behaves strangely on the plane , and then perform actions that endanger the flight .