[tor-commits] [tor/master] Move rend client name checks to one function