hcrypto: Use memset_s() when clearing sensitive buffers
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:

committed by
Jeffrey Altman

parent
88ea8039e3
commit
20f038f4f0
@@ -160,7 +160,7 @@ RSA_free(RSA *rsa)
|
||||
free_if(rsa->iqmp);
|
||||
#undef free_if
|
||||
|
||||
memset(rsa, 0, sizeof(*rsa));
|
||||
memset_s(rsa, sizeof(*rsa), 0, sizeof(*rsa));
|
||||
free(rsa);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user