Minor coding style improvement

Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
Joe Subbiani 2021-08-20 15:56:22 +01:00
parent efb8fae492
commit 24647c5cd2
2 changed files with 2 additions and 5 deletions

View file

@ -820,7 +820,6 @@ static int ssl_write_use_srtp_ext( mbedtls_ssl_context *ssl,
profile_value ) );
MBEDTLS_PUT_UINT16_BE( profile_value, p, 0 );
p += 2;
}
else
{
@ -1415,8 +1414,7 @@ static int ssl_write_client_hello( mbedtls_ssl_context *ssl )
/* No need to check for space here, because the extension
* writing functions already took care of that. */
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
p += 2;
p += ext_len;
p += 2 + ext_len;
}
ssl->out_msglen = p - buf;

View file

@ -3014,8 +3014,7 @@ static int ssl_write_server_hello( mbedtls_ssl_context *ssl )
if( ext_len > 0 )
{
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
p += 2;
p += ext_len;
p += 2 + ext_len;
}
#if defined(MBEDTLS_SSL_PROTO_SSL3)