It probably does both, but substituion at carboxylic carbon is predominant, because 1.) It carries a bigger "+" charge and therefore more readily attracts the nucleophile (electrostatically) 2.) pi-antibonding orbital of carboxylic group C=O bond lies lower in energy than sigma-antibonding C-Br bond, so again substitution at alpha carbon shouldn't be the predominant reaction.