[tor-commits] [tor/master] check bounds on handshake_type more thoroughly