Changeset 1626


Ignore:
Timestamp:
02/20/10 07:14:17 (11 years ago)
Author:
landlord
Message:

Fix for module-camd35.c on on amd64/x86_64 arch, thanks to ZoMtEc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-camd35.c

    r1552 r1626  
    4949    return(memcmp(client[cs_idx].ucrc, ucrc, 4) ? 1 : 0);
    5050  client[cs_idx].crypted=1;
    51   crc=(ucrc[0]<<24) | (ucrc[1]<<16) | (ucrc[2]<<8) | ucrc[3];
     51  crc=(((ucrc[0]<<24) | (ucrc[1]<<16) | (ucrc[2]<<8) | ucrc[3]) & 0xffffffffL);
    5252  for (account=cfg->account; (account) && (!upwd[0]); account=account->next)
    5353    if (crc==crc32(0L, MD5((unsigned char *)account->usr, strlen(account->usr), NULL), 16))
Note: See TracChangeset for help on using the changeset viewer.