No better place for his leg to break than at the vet's.If it hadn't broken then, it probably would have broken soon, at home, maybe while he was running in the yard or just walking in the house. That would have meant a lot more pain for him.
I hope everything goes well for him (and you) from here out.