After the war, he was thought of well enough to be kept in the reduced Reichswehr, whose officer corps was limited to 4,000 by the Treaty of Versailles. He had to resign from the army in 1932, when he got into trouble over an indiscretion during the carnival in the demilitarised zone of the Rhineland, where Reichswehr officers were prohibited.[citation needed]