Increasing the corrosion resistance of equipment due to the use of film-forming amines