Incorrect argument order to memset()
This commit is contained in:
parent
6b3a385f85
commit
6319853811
@ -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)
|
if (type == NID_sha1 || type == NID_md5)
|
||||||
{
|
{
|
||||||
memset(hashBuffer, keyLength+1, 0);
|
memset(hashBuffer, 0, keyLength+1);
|
||||||
OPENSSL_free(hashBuffer);
|
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)
|
if (type == NID_sha1 || type == NID_md5)
|
||||||
{
|
{
|
||||||
memset(hashBuffer, keyLength+1, 0);
|
memset(hashBuffer, 0, keyLength+1);
|
||||||
OPENSSL_free(hashBuffer);
|
OPENSSL_free(hashBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user