Corrosion protection for heating systems