aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/filters/cipher_filter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/filters/cipher_filter.cpp b/src/lib/filters/cipher_filter.cpp
index 03727f239..a3e7bd1c3 100644
--- a/src/lib/filters/cipher_filter.cpp
+++ b/src/lib/filters/cipher_filter.cpp
@@ -28,7 +28,7 @@ Cipher_Mode_Filter::Cipher_Mode_Filter(Cipher_Mode* mode) :
Buffered_Filter(choose_update_size(mode->update_granularity()),
mode->minimum_final_size()),
m_mode(mode),
- m_nonce(mode->default_nonce_length() == 0),
+ m_nonce(mode->default_nonce_length()),
m_buffer(m_mode->update_granularity())
{
}