mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 15:21:45 +00:00
duplicated subsession id was never detected
This commit is contained in:
1 parent
c0f5798af9
commit
f756d258b4
1 file changed
+1
-1
@@ -878,7 +878,7 @@ namespace client
|
||||
auto masterSession = std::static_pointer_cast<SAMMasterSession>(session);
|
||||
auto params = ExtractParams (buf);
|
||||
std::string_view id = params[SAM_PARAM_ID];
|
||||
if (masterSession->subsessions.count (id) > 1)
|
||||
if (masterSession->subsessions.count (id) > 0)
|
||||
{
|
||||
// session exists
|
||||
SendMessageReply (SAM_SESSION_CREATE_DUPLICATED_ID, false);
|
||||
|
||||
Reference in new issue
Block a user