Best is to replace the entire pipe. If there are already rust holes in it, more will appear soon. Check if there is a plastic liner missing that prevents snow and salt from getting on that pipe. It shouldn't be rusting out in ten years. They are normally made from galvanized metal to prevent rust.