diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-05-27 07:08:11 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-05-27 07:08:11 +0000 |
commit | 2f50e8eac958f5a1bf7be05aeac015e5ee400927 (patch) | |
tree | 33947ff5cf68dd2ae0a871c4cc484822cc121ba1 /zinflate.cpp | |
parent | 1a1fca3f87fd827ad266a65329e2144930ead5eb (diff) | |
download | cryptopp-git-2f50e8eac958f5a1bf7be05aeac015e5ee400927.tar.gz |
copy fix over from 4.x branch
Diffstat (limited to 'zinflate.cpp')
-rw-r--r-- | zinflate.cpp | 5 |
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()); |