Skip to content

Commit c9d1ba4

Browse files
authored
Merge pull request #2673 from dcooper16/avoid_subshell
Avoid subshell overhead
2 parents 78dd0a1 + c38f468 commit c9d1ba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testssl.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10931,7 +10931,7 @@ run_fs() {
1093110931
# Versions of TLS prior to 1.3 close the connection if the client does not support the curve
1093210932
# used in the certificate. The easiest solution is to move the curves to the end of the list.
1093310933
# instead of removing them from the ClientHello. This is only needed if there is no RSA certificate.
10934-
if (! "$HAS_TLS13" || [[ "$proto" == "-no_tls1_3" ]]) && [[ ! "$ecdhe_cipher_list" == *RSA* ]]; then
10934+
if { ! "$HAS_TLS13" || [[ "$proto" == "-no_tls1_3" ]]; } && [[ ! "$ecdhe_cipher_list" == *RSA* ]]; then
1093510935
while true; do
1093610936
curves_to_test=""
1093710937
for (( i=low; i < high; i++ )); do
@@ -11001,7 +11001,7 @@ run_fs() {
1100111001
# Versions of TLS prior to 1.3 close the connection if the client does not support the curve
1100211002
# used in the certificate. The easiest solution is to move the curves to the end of the list.
1100311003
# instead of removing them from the ClientHello. This is only needed if there is no RSA certificate.
11004-
if ([[ "$proto" == 03 ]] && [[ ! "$ecdhe_cipher_list" == *RSA* ]]); then
11004+
if [[ "$proto" == 03 ]] && [[ ! "$ecdhe_cipher_list" == *RSA* ]]; then
1100511005
while true; do
1100611006
curves_to_test=""
1100711007
for (( i=0; i < nr_curves; i++ )); do

0 commit comments

Comments
 (0)