Corrosion control in the presence of sulfate-reducing bacteria