Changeset 4016


Ignore:
Timestamp:
11/29/10 13:56:50 (10 years ago)
Author:
schlocke
Message:

cccam: fixed password auth + small things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-cccam.c

    r4012 r4016  
    27092709            card2->remote_id = card->remote_id;
    27102710            card2->maxdown = reshare;
     2711            ll_clear_data(card2->badsids);
    27112712            ll_append(cardlist, card2);
    27122713            modified = 1;
     
    27352736            card2->remote_id = card->remote_id;
    27362737            card2->maxdown = reshare;
     2738            ll_clear_data(card2->badsids);
    27372739            ll_append(cardlist, card2);
    27382740            modified = 1;
     
    31293131    cc->server_ecm_pending = 0;
    31303132    cc->extended_mode = 0;
     3133    cc->cmd0c_mode = MODE_CMD_0x0C_NONE;
    31313134
    31323135    //Create checksum for "O" cccam:
     
    31983201    if ((i = recv(cl->pfd, buf, 6, MSG_WAITALL)) == 6) {
    31993202        cc_crypt(&cc->block[DECRYPT], buf, 6, DECRYPT);
    3200         cs_ddump(buf, 6, "cccam: pwd check '%s':", buf);
     3203        //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!
     3205                               //So ignore first byte!
     3206            cs_log("account '%s' wrong password!", usr);
     3207            return -1;
     3208        }
    32013209    } else
    32023210        return -1;
Note: See TracChangeset for help on using the changeset viewer.