[tor-commits] [tor/master] merge in some fixes i found in a sandbox