Changeset 1750


Ignore:
Timestamp:
Mar 1, 2010, 8:59:32 AM (10 years ago)
Author:
merek
Message:

fix for cccam server advertising bad idents, thanks to red321z and equeorto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-cccam.c

    r1741 r1750  
    997997  reader[ridx].nprov = reader[ridx].ftab.filts[0].nprids;
    998998  for (n=0; n<reader[ridx].nprov; n++) {
    999     reader[ridx].prid[n][0] = reader[ridx].ftab.filts[0].prids[n] << 24;
    1000     reader[ridx].prid[n][1] = reader[ridx].ftab.filts[0].prids[n] << 16;
    1001     reader[ridx].prid[n][2] = reader[ridx].ftab.filts[0].prids[n] << 8;
     999    reader[ridx].prid[n][0] = reader[ridx].ftab.filts[0].prids[n] >> 24;
     1000    reader[ridx].prid[n][1] = reader[ridx].ftab.filts[0].prids[n] >> 16;
     1001    reader[ridx].prid[n][2] = reader[ridx].ftab.filts[0].prids[n] >> 8;
    10021002    reader[ridx].prid[n][3] = reader[ridx].ftab.filts[0].prids[n] & 0xff;
    10031003  }
     
    10581058
    10591059          for (k=0; k<reader[r].ftab.filts[j].nprids; k++) {
    1060             buf[21 + (k*7)] = reader[r].ftab.filts[j].prids[k] << 24;
    1061             buf[22 + (k*7)] = reader[r].ftab.filts[j].prids[k] << 16;
    1062             buf[23 + (k*7)] = reader[r].ftab.filts[j].prids[k] << 8;
    1063             buf[24 + (k*7)] = reader[r].ftab.filts[j].prids[k] & 0xff;
     1060            buf[21 + (k*7)] = reader[r].ftab.filts[j].prids[k] >> 16;
     1061            buf[22 + (k*7)] = reader[r].ftab.filts[j].prids[k] >> 8;
     1062            buf[23 + (k*7)] = reader[r].ftab.filts[j].prids[k] & 0xff;
    10641063          }
    10651064
    10661065          buf[21 + (k*7)] = 1;
    1067           memcpy(buf + 22 + (k*7), cc->node_id, 8);
     1066          memcpy(buf + 22 + (k*7), cc->node_id, 7);
    10681067
    10691068          cc_cmd_send(buf, 30 + (k*7), MSG_NEW_CARD);
Note: See TracChangeset for help on using the changeset viewer.