Changeset 4018


Ignore:
Timestamp:
11/29/10 18:35:11 (10 years ago)
Author:
schlocke
Message:

cccam: added failban to user with wrong passwords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-cccam.c

    r4017 r4018  
    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, "CCcam\0", 6) != 0) { //Don't know why - but first byte is always wrong!
    3205                                //So ignore first byte!
     3204        if (memcmp(buf, "CCcam\0", 6) != 0) {
    32063205            cs_log("account '%s' wrong password!", usr);
     3206            cs_add_violation((uint)cl->ip);
    32073207            return -1;
    32083208        }
Note: See TracChangeset for help on using the changeset viewer.