summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/IcqOscarJ/src/icq_server.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/icq_server.cpp b/protocols/IcqOscarJ/src/icq_server.cpp
index 585de4ba3c..04f7f8c728 100644
--- a/protocols/IcqOscarJ/src/icq_server.cpp
+++ b/protocols/IcqOscarJ/src/icq_server.cpp
@@ -321,7 +321,7 @@ void CIcqProto::sendServPacket(icq_packet *pPacket)
icq_serverDisconnect();
}
else { // Rates management
- mir_cslock l(m_ratesMutex);
+ mir_cslock r(m_ratesMutex);
m_rates->packetSent(pPacket);
}
}
@@ -387,8 +387,6 @@ void CIcqProto::icq_login(const char* szPassword)
// User password
stsi->wPassLen = mir_strlen(szPassword);
- if (stsi->wPassLen > 8)
- stsi->wPassLen = 8;
null_strcpy(stsi->szPass, szPassword, stsi->wPassLen);
// Randomize sequence