Skip to content

Commit 601dddd

Browse files
committed
Quick fix for #2590
Proper fix need another refactoring/cleanup of the renego test.
1 parent 245ad2a commit 601dddd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17189,7 +17189,7 @@ run_renego() {
1718917189
sec_client_renego=1
1719017190
else
1719117191
# second try in the foreground as we are sure now it won't hang
17192-
echo R | $OPENSSL s_client $(s_client_options "$proto $legacycmd $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>>$ERRFILE
17192+
(echo R; sleep 1) | $OPENSSL s_client $(s_client_options "$proto $legacycmd $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>>$ERRFILE
1719317193
sec_client_renego=$?
1719417194
# 0 means client is renegotiating & doesn't return an error --> vuln!
1719517195
# 1 means client tried to renegotiating but the server side errored then. You still see RENEGOTIATING in the output

0 commit comments

Comments
 (0)