mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-05-25 01:35:31 +00:00
fixed incorrect params length calculation if follow on data
This commit is contained in:
@@ -269,7 +269,7 @@ namespace client
|
||||
if (!strcmp (m_Buffer, SAM_SESSION_CREATE))
|
||||
ProcessSessionCreate ({ separator + 1, l });
|
||||
else if (!strcmp (m_Buffer, SAM_STREAM_CONNECT))
|
||||
ProcessStreamConnect (separator + 1, bytes_transferred - (separator - m_Buffer) - 1, bytes_transferred - (eol - m_Buffer) - 1);
|
||||
ProcessStreamConnect (separator + 1, eol - separator - 1, bytes_transferred - (eol - m_Buffer) - 1);
|
||||
else if (!strcmp (m_Buffer, SAM_STREAM_ACCEPT))
|
||||
ProcessStreamAccept ({ separator + 1, l });
|
||||
else if (!strcmp (m_Buffer, SAM_STREAM_FORWARD))
|
||||
|
||||
Reference in New Issue
Block a user