From: Richard Levitte Date: Wed, 25 Sep 2002 12:52:13 +0000 (+0000) Subject: Incorrect argument order to memset() X-Git-Tag: OpenSSL-engine-0_9_6h~23^2~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd98ab6491421db18dd8b4442d016e01ff202fc1;p=thirdparty%2Fopenssl.git Incorrect argument order to memset() --- diff --git a/crypto/engine/hw_4758_cca.c b/crypto/engine/hw_4758_cca.c index bfb80968e2e..6d41b9ed2ad 100644 --- a/crypto/engine/hw_4758_cca.c +++ b/crypto/engine/hw_4758_cca.c @@ -715,7 +715,7 @@ static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); } @@ -838,7 +838,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); }