Right - he was a socialist who railed against communists. Or, a national socialist as opposed to an international socialist. Socialism, as you can see, has many flavors; if conflict between two socialist factions "proves" that one Isn't Really Socialist, then how do you explain the original split between the bolsheviks vs. mensheviks? Which group wasn't socialist, in your opinion?
Ironically, despite Hitler's rhetoric, it was the communists who helped put him in power in the first place by siding with the Nazi party rather than the more moderate social democratic party.