[tor-commits] [tor/master] Fix segfault and logic error in remove_duplicate_orports()