GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

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

Fix check_opened_connections test

Sometimes $bad_connections{''} 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
delete $bad_connections{''}
if $bad_connections{''} <= 2;
if (defined $bad_connections{''}
&& $bad_connections{''} <= 2) {
delete $bad_connections{''}
$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