Ear infection after swimming

A friend of mine has a 2yr old golden retriever who keeps getting an ear infection in one ear after swimming in their pool. She said it’s not a pool with chlorine or chemicals, they use Epsom salts. Does anyone know of something that could help sooth the ear and or prevent more infections? He loves to swim, thanks!