Merge remote-tracking branch 'public/pr/1625' into development

This commit is contained in:
Simon Butcher 2018-08-28 12:23:40 +01:00
commit 9d5a9e1213
3 changed files with 13 additions and 2 deletions

View file

@ -3332,8 +3332,8 @@ static int ssl_parse_new_session_ticket( mbedtls_ssl_context *ssl )
msg = ssl->in_msg + mbedtls_ssl_hs_hdr_len( ssl );
lifetime = ( msg[0] << 24 ) | ( msg[1] << 16 ) |
( msg[2] << 8 ) | ( msg[3] );
lifetime = ( ((uint32_t) msg[0]) << 24 ) | ( msg[1] << 16 ) |
( msg[2] << 8 ) | ( msg[3] );
ticket_len = ( msg[4] << 8 ) | ( msg[5] );