duplicated subsession id was never detected

This commit is contained in:
PobreGato committed 2026-08-16 04:11:06 +03:00
1 parent c0f5798af9
commit f756d258b4
1 file changed
+1 -1
+1 -1
View File
@@ -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);