Silly question, I know. If your mast step is not too far gone, try this product.
http://www.por15.com/The starter kit is perfect to do the mast step job. The mast corrodes due to the interaction with the mast step. This stuff totally isolates the two.