diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-30 16:44:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-30 16:44:58 +0000 |
commit | 237d02ebbabbedfb8b33160ebfb5250bbd491eca (patch) | |
tree | b849e272002724c24da02b6e4b714bdf9281a34b /protocols/IcqOscarJ/src/fam_17signon.cpp | |
parent | f485b5e4b683cc31168d440dc89574913e814852 (diff) |
and a few more
git-svn-id: http://svn.miranda-ng.org/main/trunk@11174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/fam_17signon.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/fam_17signon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/fam_17signon.cpp b/protocols/IcqOscarJ/src/fam_17signon.cpp index 4018aa85a7..a6689e6295 100644 --- a/protocols/IcqOscarJ/src/fam_17signon.cpp +++ b/protocols/IcqOscarJ/src/fam_17signon.cpp @@ -120,7 +120,6 @@ void CIcqProto::sendClientAuth(const char *szKey, size_t wKeyLen, BOOL bSecure) void CIcqProto::handleAuthKeyResponse(BYTE *buf, size_t wPacketLen, serverthread_info *info)
{
- WORD wKeyLen;
char szKey[64] = {0};
mir_md5_state_t state;
BYTE digest[16];
@@ -134,6 +133,7 @@ void CIcqProto::handleAuthKeyResponse(BYTE *buf, size_t wPacketLen, serverthread return;
}
+ size_t wKeyLen;
unpackWord(&buf, &wKeyLen);
wPacketLen -= 2;
@@ -151,7 +151,7 @@ void CIcqProto::handleAuthKeyResponse(BYTE *buf, size_t wPacketLen, serverthread mir_md5_finish(&state, digest);
mir_md5_init(&state);
- mir_md5_append(&state, (LPBYTE)szKey, wKeyLen);
+ mir_md5_append(&state, (LPBYTE)szKey, (int)wKeyLen);
mir_md5_append(&state, digest, 16);
mir_md5_append(&state, (LPBYTE)CLIENT_MD5_STRING, sizeof(CLIENT_MD5_STRING)-1);
mir_md5_finish(&state, digest);
|