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
@@ -87,7 +87,7 @@ ENGINE_finish(ENGINE *engine)
|
||||
if (engine->dso_handle)
|
||||
dlclose(engine->dso_handle);
|
||||
|
||||
memset(engine, 0, sizeof(*engine));
|
||||
memset_s(engine, sizeof(*engine), 0, sizeof(*engine));
|
||||
engine->references = -1;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user