diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/utils/zero_mem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/zero_mem.cpp b/src/lib/utils/zero_mem.cpp index baa4aba6c..371c434ca 100644 --- a/src/lib/utils/zero_mem.cpp +++ b/src/lib/utils/zero_mem.cpp @@ -17,9 +17,9 @@ void zero_mem(void* ptr, size_t n) { #if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY) ::RtlSecureZeroMemory(ptr, n); -#elif defined(BOTAN_USE_VOLATILE_MEMSET) && (BOTAN_USE_VOLATILE_MEMSET == 1) +#elif defined(BOTAN_USE_VOLATILE_MEMSET_FOR_ZERO) && (BOTAN_USE_VOLATILE_MEMSET_FOR_ZERO == 1) static void* (*const volatile memset_ptr)(void*, int, size_t) = std::memset; - (memset_ptr)(p, 0, n); + (memset_ptr)(ptr, 0, n); #else volatile byte* p = reinterpret_cast<volatile byte*>(ptr); |