1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Fix some return values

This commit is contained in:
Manuel Pégourié-Gonnard
2013-08-20 16:58:13 +02:00
parent 76c18a1a77
commit 583b608401
4 changed files with 18 additions and 12 deletions

View File

@ -2066,10 +2066,12 @@ static int ssl_write_certificate_verify( ssl_context *ssl )
ecdsa_init( &ecdsa );
ret = ecdsa_from_keypair( &ecdsa, ssl->pk_key->pk_ctx ) ||
ecdsa_write_signature( &ecdsa, hash, hashlen,
ssl->out_msg + 6 + offset, &n,
ssl->f_rng, ssl->p_rng );
if( ( ret = ecdsa_from_keypair( &ecdsa, ssl->pk_key->pk_ctx ) ) == 0 )
{
ret = ecdsa_write_signature( &ecdsa, hash, hashlen,
ssl->out_msg + 6 + offset, &n,
ssl->f_rng, ssl->p_rng );
}
ecdsa_free( &ecdsa );