summaryrefslogtreecommitdiff
path: root/zinflate.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-05-27 07:08:11 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-05-27 07:08:11 +0000
commite3e0c6c7d2d37b902060ffefc27270675fbf246b (patch)
tree33947ff5cf68dd2ae0a871c4cc484822cc121ba1 /zinflate.cpp
parentd15d302d51d01ab91074e6233971703e4023c063 (diff)
downloadcryptopp-e3e0c6c7d2d37b902060ffefc27270675fbf246b.tar.gz
copy fix over from 4.x branch
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@75 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'zinflate.cpp')
-rw-r--r--zinflate.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/zinflate.cpp b/zinflate.cpp
index 2582cf1..685268f 100644
--- a/zinflate.cpp
+++ b/zinflate.cpp
@@ -303,9 +303,6 @@ void Inflator::ProcessInput(bool flush)
{
while (true)
{
- if (m_inQueue.IsEmpty())
- return;
-
switch (m_state)
{
case PRE_STREAM:
@@ -337,6 +334,8 @@ void Inflator::ProcessInput(bool flush)
ProcessPoststreamTail();
m_state = m_repeat ? PRE_STREAM : AFTER_END;
Output(0, NULL, 0, GetAutoSignalPropagation(), true); // TODO: non-blocking
+ if (m_inQueue.IsEmpty())
+ return;
break;
case AFTER_END:
m_inQueue.TransferTo(*AttachedTransformation());