summaryrefslogtreecommitdiff
path: root/channels.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-18 02:52:49 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-18 02:52:49 +0000
commitd94c78949fee98200162462e9e8d37c9287a9d95 (patch)
tree71779f2f08e68fbe76bf81389b2db30991cc9e09 /channels.cpp
parent42c3d8f3aa593c224174558fd6f3d2709e08f7d0 (diff)
downloadcryptopp-d94c78949fee98200162462e9e8d37c9287a9d95.tar.gz
fix bug in ChannelSwitch::ChannelCreatePutSpace() when a channel has only one route
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@99 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'channels.cpp')
-rw-r--r--channels.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels.cpp b/channels.cpp
index 4e77d69..3647b14 100644
--- a/channels.cpp
+++ b/channels.cpp
@@ -230,9 +230,10 @@ byte * ChannelSwitch::ChannelCreatePutSpace(const std::string &channel, unsigned
if (!m_it.End())
{
BufferedTransformation &target = m_it.Destination();
+ const std::string &channel = m_it.Channel();
m_it.Next();
if (m_it.End()) // there is only one target channel
- return target.ChannelCreatePutSpace(m_it.Channel(), size);
+ return target.ChannelCreatePutSpace(channel, size);
}
size = 0;
return NULL;