summaryrefslogtreecommitdiff
path: root/channels.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-18 02:52:49 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-18 02:52:49 +0000
commit37db5ab1344e11627a0573ae3b80c31128097bab (patch)
tree71779f2f08e68fbe76bf81389b2db30991cc9e09 /channels.cpp
parent38b49e454399c81aac16279f78a834de26245bec (diff)
downloadcryptopp-git-37db5ab1344e11627a0573ae3b80c31128097bab.tar.gz
fix bug in ChannelSwitch::ChannelCreatePutSpace() when a channel has only one route
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 4e77d692..3647b144 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;