Changeset 1661


Ignore:
Timestamp:
02/23/10 17:43:15 (11 years ago)
Author:
merek
Message:

Merge from UMP - cogsi: cccam: fixed server buffer overflow (thanks to Digital)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-cccam.c

    r1660 r1661  
    351351
    352352  cc_crypt(&cc->block[DECRYPT], netbuf, 4, DECRYPT);
    353   //cs_ddump(netbuf, 4, "cccam: decrypted header:");
     353  cs_ddump(netbuf, 4, "cccam: decrypted header:");
    354354
    355355  g_flag = netbuf[0];
     
    11541154
    11551155  // send passwd ack
    1156   bzero(data, 20);
    1157   memcpy(data, "CCcam\0", 6);
    1158   cs_ddump(data, 20, "cccam: send ack:");
    1159   cc_crypt(&cc->block[ENCRYPT], data, 20, ENCRYPT);
    1160   send(pfd, data, 20, 0);
     1156  bzero(buf, 20);
     1157  memcpy(buf, "CCcam\0", 6);
     1158  cs_ddump(buf, 20, "cccam: send ack:");
     1159  cc_crypt(&cc->block[ENCRYPT], buf, 20, ENCRYPT);
     1160  send(pfd, buf, 20, 0);
    11611161
    11621162  // recv cli data
Note: See TracChangeset for help on using the changeset viewer.