Skip to content

Commit e293b7d

Browse files
committed
Look-ahead trick for -U --ids-friendly
If the order of the cmdline is '-U --ids-friendly' then we need to make sure we catch --ids-friendly. Normally we do not, see #1717. The following statement makes sure. In the do-while + case-esac loop the check for --ids-friendly will be executed again, but it does not hurt
1 parent 5d49458 commit e293b7d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

testssl.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19531,6 +19531,13 @@ parse_cmd_line() {
1953119531
do_client_simulation=true
1953219532
;;
1953319533
-U|--vulnerable|--vulnerabilities)
19534+
# Lookahead function: If the order of the cmdline is '-U --ids-friendly'
19535+
# then we need to make sure we catch --ids-friendly. Normally we do not,
19536+
# see #1717. The following statement makes sure. In the do-while + case-esac
19537+
# loop it will be execute again, but it does not hurt
19538+
if [[ "${CMDLINE_ARRAY[@]}" =~ --ids-friendly ]]; then
19539+
OFFENSIVE=false
19540+
fi
1953419541
do_vulnerabilities=true
1953519542
do_heartbleed="$OFFENSIVE"
1953619543
do_ccs_injection="$OFFENSIVE"

0 commit comments

Comments
 (0)