Skip to content

Commit e4e3afb

Browse files
committed
Tentative to fix CI tests
1 parent 991c1fe commit e4e3afb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

testssl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17169,6 +17169,10 @@ run_renego() {
1716917169
prln_warning "not having provided client certificate and private key file, the client x509-based authentication prevents this from being tested"
1717017170
fileout "$jsonID" "WARN" "not having provided client certificate and private key file, the client x509-based authentication prevents this from being tested"
1717117171
else
17172+
# We will extensively use subshell and command pipe
17173+
# Do not let herited pipeline error control interfere
17174+
[[ $- == *e* ]] && restore_pipeerror=1
17175+
[[ $restore_pipeerror == 1 ]] && set +e
1717217176
# We will need $ERRFILE for mitigation detection
1717317177
if [[ $ERRFILE =~ dev.null ]]; then
1717417178
ERRFILE=$TEMPDIR/errorfile.txt || exit $ERR_FCREATE
@@ -17279,6 +17283,7 @@ run_renego() {
1727917283
;;
1728017284
esac
1728117285
fi
17286+
[[ $restore_pipeerror == 1 ]] && set -e
1728217287
fi
1728317288

1728417289
#pr_bold " Insecure Client-Initiated Renegotiation " # pre-RFC 5746, CVE-2009-3555

0 commit comments

Comments
 (0)