mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
Merge pull request #38385 from rzarzynski/wip-rbd-memset_s
librbd: use the ceph_memzero_s() wrapper instead of explicit_bzero() Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
871404a709
@ -135,7 +135,7 @@ void FormatRequest<I>::handle_write_header(int r) {
|
||||
|
||||
template <typename I>
|
||||
void FormatRequest<I>::finish(int r) {
|
||||
explicit_bzero(&m_passphrase[0], m_passphrase.size());
|
||||
ceph_memzero_s(&m_passphrase[0], m_passphrase.capacity(), m_passphrase.size());
|
||||
m_on_finish->complete(r);
|
||||
delete this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user