Changeset 4017


Ignore:
Timestamp:
11/29/10 17:26:39 (10 years ago)
Author:
schlocke
Message:

cccam: fixed password check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-cccam.c

    r4016 r4017  
    31983198   
    31993199    // receive passwd / 'CCcam'
    3200     cc_crypt(&cc->block[DECRYPT], (uint8 *) pwd, strlen(pwd), DECRYPT);
     3200    cc_crypt(&cc->block[DECRYPT], (uint8 *) pwd, strlen(pwd), ENCRYPT);
    32013201    if ((i = recv(cl->pfd, buf, 6, MSG_WAITALL)) == 6) {
    32023202        cc_crypt(&cc->block[DECRYPT], buf, 6, DECRYPT);
    32033203        //cs_ddump(buf, 6, "cccam: pwd check '%s':", buf); //illegal buf-bytes could kill the logger!
    3204         if (memcmp(buf+1, "Ccam\0", 5) != 0) { //Don't know why - but first byte is always wrong!
     3204        if (memcmp(buf, "CCcam\0", 6) != 0) { //Don't know why - but first byte is always wrong!
    32053205                               //So ignore first byte!
    32063206            cs_log("account '%s' wrong password!", usr);
Note: See TracChangeset for help on using the changeset viewer.