aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/cxx
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-15 01:04:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-15 01:04:48 +0300
commitc11a0bd2abef4c9536432664600ce6b6ed6ccbe4 (patch)
tree91b8a928c82aeabc48788752944c2269d4c63b79 /utils/cxx
parentupdate the docs (diff)
downloadaes-tools-c11a0bd2abef4c9536432664600ce6b6ed6ccbe4.tar.gz
aes-tools-c11a0bd2abef4c9536432664600ce6b6ed6ccbe4.zip
error handling refactoring + more docs
Diffstat (limited to '')
-rw-r--r--utils/cxx/include/aesnixx/error.hpp2
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));