mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-24 11:28:04 +00:00
Improve clarity of a memory operation call
This commit is contained in:
parent
46d61b1e95
commit
95b68ef5ae
|
@ -6802,7 +6802,7 @@ static int ssl_check_peer_crt_unchanged( mbedtls_ssl_context *ssl,
|
||||||
if( peer_crt->raw.len != crt_buf_len )
|
if( peer_crt->raw.len != crt_buf_len )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
return( memcmp( peer_crt->raw.p, crt_buf, crt_buf_len ) );
|
return( memcmp( peer_crt->raw.p, crt_buf, peer_crt->raw.len ) );
|
||||||
}
|
}
|
||||||
#else /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
|
#else /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
|
||||||
static int ssl_check_peer_crt_unchanged( mbedtls_ssl_context *ssl,
|
static int ssl_check_peer_crt_unchanged( mbedtls_ssl_context *ssl,
|
||||||
|
|
Loading…
Reference in a new issue