mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 00:45:31 +00:00
Remove now-redundant code
Due to previous change of conditions, this is now in the 'else' branch of 'if resume == 1' and the only allowed values are 0 or 1, so setting to 0 is redundant.
This commit is contained in:
parent
33cb3e1c7e
commit
44b10761cc
|
@ -1830,9 +1830,6 @@ static int ssl_parse_server_hello( mbedtls_ssl_context *ssl )
|
||||||
#endif /* !MBEDTLS_SSL_NO_SESSION_RESUMPTION */
|
#endif /* !MBEDTLS_SSL_NO_SESSION_RESUMPTION */
|
||||||
{
|
{
|
||||||
ssl->state++;
|
ssl->state++;
|
||||||
#if !defined(MBEDTLS_SSL_NO_SESSION_RESUMPTION)
|
|
||||||
ssl->handshake->resume = 0;
|
|
||||||
#endif /* !MBEDTLS_SSL_NO_SESSION_RESUMPTION */
|
|
||||||
#if defined(MBEDTLS_HAVE_TIME)
|
#if defined(MBEDTLS_HAVE_TIME)
|
||||||
ssl->session_negotiate->start = mbedtls_time( NULL );
|
ssl->session_negotiate->start = mbedtls_time( NULL );
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue