From cac5f549caae2e9cb9be68adc967960a852521a3 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Wed, 14 Feb 2018 08:22:04 -0500 Subject: [PATCH] Fix typo Fix wrong order of arguments for a memset --- library/ecdsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ecdsa.c b/library/ecdsa.c index 1a6357bc1..53011d450 100644 --- a/library/ecdsa.c +++ b/library/ecdsa.c @@ -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 ); }