[tor-commits] [tor/release-0.2.3] Avoid undefined behaviour when parsing HS protocol versions