aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/experimental/cipher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/experimental/cipher.h b/src/experimental/cipher.h
index 91f1704..74f5124 100644
--- a/src/experimental/cipher.h
+++ b/src/experimental/cipher.h
@@ -98,7 +98,7 @@ namespace Bu
98 98
99 virtual void flush() 99 virtual void flush()
100 { 100 {
101 if( iWriteBufFill < iBlockSize ) 101 if( iWriteBufFill > 0 && iWriteBufFill < iBlockSize )
102 { 102 {
103 memset( aWriteBuf+iWriteBufFill, 0, iBlockSize-iWriteBufFill ); 103 memset( aWriteBuf+iWriteBufFill, 0, iBlockSize-iWriteBufFill );
104 encipher( aWriteBuf ); 104 encipher( aWriteBuf );