[tor-commits] [tor/master] Fix various issues pointed out by Nick and Andrea.