GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Unverified Commit 8a84d22b authored by boklm's avatar boklm
Browse files

Fix check_opened_connections test

Sometimes $bad_connections{'127.0.0.1:9150'} can be undefined.
parent 59ee830d
......@@ -362,8 +362,10 @@ sub check_opened_connections {
# For some reasons, tor-browser creates two connections to the default
# socks port even when when TOR_SOCKS_PORT is set
# https://lists.torproject.org/pipermail/tbb-dev/2014-May/000050.html
delete $bad_connections{'127.0.0.1:9150'}
if $bad_connections{'127.0.0.1:9150'} <= 2;
if (defined $bad_connections{'127.0.0.1:9150'}
&& $bad_connections{'127.0.0.1:9150'} <= 2) {
delete $bad_connections{'127.0.0.1:9150'}
}
$test->{results}{success} = 0 if %bad_connections;
$test->{results}{bad_connections} = \%bad_connections;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment