[tor-commits] [tor/master] Add more error checks to socks parsing code