summaryrefslogtreecommitdiff
path: root/zinflate.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-05-27 07:08:11 +0000
committerweidai <weidai11@users.noreply.github.com>2003-05-27 07:08:11 +0000
commit2f50e8eac958f5a1bf7be05aeac015e5ee400927 (patch)
tree33947ff5cf68dd2ae0a871c4cc484822cc121ba1 /zinflate.cpp
parent1a1fca3f87fd827ad266a65329e2144930ead5eb (diff)
downloadcryptopp-git-2f50e8eac958f5a1bf7be05aeac015e5ee400927.tar.gz
copy fix over from 4.x branch
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 2582cf19..685268f6 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());