[tor-commits] [torsocks/master] Avoid potential null pointer dereferences in test_connection.