Remove redundant else
statement
Remove `else` statement, as it is redundant. resolves #1776
This commit is contained in:
parent
d8f41698d2
commit
34b03ef78f
@ -10,6 +10,9 @@ Bugfix
|
|||||||
* Add ecc extensions only if an ecc based ciphersuite is used.
|
* Add ecc extensions only if an ecc based ciphersuite is used.
|
||||||
This improves compliance to RFC 4492, and as a result, solves
|
This improves compliance to RFC 4492, and as a result, solves
|
||||||
interoperability issues with BouncyCastle. Raised by milenamil in #1157.
|
interoperability issues with BouncyCastle. Raised by milenamil in #1157.
|
||||||
|
* Remove redundant else statement, which is not readable, and the positive
|
||||||
|
path in the if statement results in exiting the funciton. Raised by irwir
|
||||||
|
in #1776.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Copy headers preserving timestamps when doing a "make install".
|
* Copy headers preserving timestamps when doing a "make install".
|
||||||
|
@ -1897,7 +1897,6 @@ int mbedtls_ecp_check_privkey( const mbedtls_ecp_group *grp, const mbedtls_mpi *
|
|||||||
mbedtls_mpi_get_bit( d, 1 ) != 0 ||
|
mbedtls_mpi_get_bit( d, 1 ) != 0 ||
|
||||||
mbedtls_mpi_bitlen( d ) - 1 != grp->nbits ) /* mbedtls_mpi_bitlen is one-based! */
|
mbedtls_mpi_bitlen( d ) - 1 != grp->nbits ) /* mbedtls_mpi_bitlen is one-based! */
|
||||||
return( MBEDTLS_ERR_ECP_INVALID_KEY );
|
return( MBEDTLS_ERR_ECP_INVALID_KEY );
|
||||||
else
|
|
||||||
|
|
||||||
/* see [Curve25519] page 5 */
|
/* see [Curve25519] page 5 */
|
||||||
if( grp->nbits == 254 && mbedtls_mpi_get_bit( d, 2 ) != 0 )
|
if( grp->nbits == 254 && mbedtls_mpi_get_bit( d, 2 ) != 0 )
|
||||||
|
Loading…
Reference in New Issue
Block a user