I don't think it's hard to answer at all—in fact, you answered it right there. No, Socrates objective wasn't to get people angry. His objective was to point out flaws in deeply held beliefs.
> I don't think it's hard to argue that when pointing out flaws in deeply-held beliefs, the subject at hand will get angry -- or at the very least uncomfortable.
It definitely can, but there's still a difference between trying to inflict anger, and anger being an undesirable possible side effect.
I guess I did shoot myself in the foot there :)
I was trying to reconcile this: suppose Socrates was a dick and actually did get pleasure out of annoying people -- and the pointing out of the flaws was actually the side-effect. Would his execution somehow have been justified?
I still don't think so.
So, much like "no pain, no gain," anger and discourse often go hand in hand.