mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 09:04:22 +01:00
Avoid dead stores (makes scan-build happier)
This commit is contained in:
parent
c0d749418b
commit
19389753c8
@ -2343,7 +2343,6 @@ static int ssl_parse_certificate_request( mbedtls_ssl_context *ssl )
|
|||||||
size_t sig_alg_len = ( ( buf[mbedtls_ssl_hs_hdr_len( ssl ) + 1 + n] << 8 )
|
size_t sig_alg_len = ( ( buf[mbedtls_ssl_hs_hdr_len( ssl ) + 1 + n] << 8 )
|
||||||
| ( buf[mbedtls_ssl_hs_hdr_len( ssl ) + 2 + n] ) );
|
| ( buf[mbedtls_ssl_hs_hdr_len( ssl ) + 2 + n] ) );
|
||||||
|
|
||||||
p = buf + mbedtls_ssl_hs_hdr_len( ssl ) + 3 + n;
|
|
||||||
m += 2;
|
m += 2;
|
||||||
n += sig_alg_len;
|
n += sig_alg_len;
|
||||||
|
|
||||||
|
@ -1932,8 +1932,6 @@ static void ssl_write_renegotiation_ext( mbedtls_ssl_context *ssl,
|
|||||||
p += ssl->verify_data_len;
|
p += ssl->verify_data_len;
|
||||||
memcpy( p, ssl->own_verify_data, ssl->verify_data_len );
|
memcpy( p, ssl->own_verify_data, ssl->verify_data_len );
|
||||||
p += ssl->verify_data_len;
|
p += ssl->verify_data_len;
|
||||||
|
|
||||||
*olen = 5 + ssl->verify_data_len * 2;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif /* MBEDTLS_SSL_RENEGOTIATION */
|
#endif /* MBEDTLS_SSL_RENEGOTIATION */
|
||||||
@ -1941,9 +1939,9 @@ static void ssl_write_renegotiation_ext( mbedtls_ssl_context *ssl,
|
|||||||
*p++ = 0x00;
|
*p++ = 0x00;
|
||||||
*p++ = 0x01;
|
*p++ = 0x01;
|
||||||
*p++ = 0x00;
|
*p++ = 0x00;
|
||||||
|
|
||||||
*olen = 5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*olen = p - buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
|
#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
|
||||||
@ -2856,7 +2854,6 @@ curve_matching_done:
|
|||||||
|
|
||||||
MBEDTLS_SSL_DEBUG_BUF( 3, "my signature", p, signature_len );
|
MBEDTLS_SSL_DEBUG_BUF( 3, "my signature", p, signature_len );
|
||||||
|
|
||||||
p += signature_len;
|
|
||||||
n += signature_len;
|
n += signature_len;
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) ||
|
#endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user