diff options
Diffstat (limited to '')
-rw-r--r-- | utils/cxx/include/aesnixx/error.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cxx/include/aesnixx/error.hpp b/utils/cxx/include/aesnixx/error.hpp index db390ea..81e63c6 100644 --- a/utils/cxx/include/aesnixx/error.hpp +++ b/utils/cxx/include/aesnixx/error.hpp @@ -28,7 +28,7 @@ namespace aesni ~ErrorDetailsThrowsInDestructor() { - if (aesni_get_error_code(get()) != AESNI_ERROR_SUCCESS) + if (aesni_is_error(aesni_get_error_code(get()))) { std::vector<char> msg; msg.resize(aesni_format_error(get(), NULL, 0)); |