Yeast/Bacterial infections????

I have slept with this guy several times now. The condom has broken on us twice and the first time it broke I ended up itching and burning the next day. I went to the doctor and found out it was bacterial vaginosis AND a yeast infection. The second time the condom broke was yesterday and now I feel like I'm about to have a yeast infection again. wtf? has this happened to anyone else?? Is it because he's dirty or something?