1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Test for lost HelloRequest

This commit is contained in:
Manuel Pégourié-Gonnard
2014-10-15 12:44:41 +02:00
committed by Paul Bakker
parent f1384470bf
commit a6ace04c5c
2 changed files with 8 additions and 8 deletions

View File

@ -1914,9 +1914,9 @@ data_exchange:
/*
* 7a. Request renegotiation while client is waiting for input from us.
* (only if we're going to exhange more data afterwards)
* (only on the first exchange, to be able to test retransmission)
*/
if( opt.renegotiate && exchanges > 1 )
if( opt.renegotiate && exchanges == opt.exchanges )
{
printf( " . Requestion renegotiation..." );
fflush( stdout );