Fix wrong order of arguments for a memset
This commit is contained in:
Andrzej Kurek 2018-02-14 08:22:04 -05:00
parent 2353781d9e
commit cac5f549ca

View File

@ -321,7 +321,7 @@ int mbedtls_ecdsa_signature_to_asn1( const mbedtls_mpi *r, const mbedtls_mpi *s,
{
int ret = internal_ecdsa_signature_to_asn1( r, s, sig, slen, ssize );
if( ret != 0 )
memset( sig, ssize, 0 );
memset( sig, 0, ssize );
return( ret );
}