Fix checksum computation with HelloVerifyRequest

This commit is contained in:
Manuel Pégourié-Gonnard 2014-07-11 13:45:34 +02:00 committed by Paul Bakker
parent 74848811b4
commit 67427c07b2
3 changed files with 20 additions and 0 deletions

View file

@ -955,7 +955,9 @@ static int ssl_parse_hello_verify_request( ssl_context *ssl )
memcpy( ssl->handshake->verify_cookie, p, cookie_len );
ssl->handshake->verify_cookie_len = cookie_len;
/* Start over at ClientHello */
ssl->state = SSL_CLIENT_HELLO;
ssl_reset_checksum( ssl );
SSL_DEBUG_MSG( 2, ( "<= parse hello verify request" ) );