summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-06-10 04:59:41 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-06-10 04:59:41 +0000
commit79714ed200a1687f3ed63bc8ff6723a5f99b59f0 (patch)
tree24480be3ac8f9faa017f6e90111ef71693183457
parenteb1855b5efed70b2af0bf03e9eaf38fc4219114e (diff)
downloadcryptopp-79714ed200a1687f3ed63bc8ff6723a5f99b59f0.tar.gz
fix bug in SourceExhausted()
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@78 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r--network.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.h b/network.h
index 790a00e..1af4e65 100644
--- a/network.h
+++ b/network.h
@@ -100,7 +100,7 @@ public:
void GetWaitObjects(WaitObjectContainer &container);
unsigned int GeneralPump2(unsigned long &byteCount, bool blockingOutput=true, unsigned long maxTime=INFINITE_TIME, bool checkDelimiter=false, byte delimiter='\n');
- bool SourceExhausted() const {return GetReceiver().EofReceived();}
+ bool SourceExhausted() const {return m_dataBegin == m_dataEnd && GetReceiver().EofReceived();}
protected:
virtual NetworkReceiver & AccessReceiver() =0;