Changeset 1726


Ignore:
Timestamp:
02/26/10 21:52:35 (11 years ago)
Author:
merek
Message:

Fix cascading related bug in module-camd35 - see UMP Ticket#441

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-camd35.c

    r1692 r1726  
    473473static int camd35_recv_chk(uchar *dcw, int *rc, uchar *buf)
    474474{
    475   //int i;
    476   ushort idx;
    477 
    478   // CMD44: old reject command introduced in mpcs
    479   // keeping this for backward compatibility
    480   if ((buf[0]!=1) && ((buf[0]!=0x44) || (buf[0]!=0x08)))
    481     return(-1);
    482 //  memcpy(&idx, buf+16, 2);
    483   idx=b2i(2, buf+16);
    484   *rc=((buf[0]!=0x44) || (buf[0]!=0x08));
    485   memcpy(dcw, buf+20, 16);
    486   return(idx);
     475    ushort idx;
     476
     477    // CMD44: old reject command introduced in mpcs
     478    // keeping this for backward compatibility
     479    if ((buf[0] != 1) && (buf[0] != 0x44) && (buf[0] != 0x08))
     480        return(-1);
     481
     482    idx=b2i(2, buf+16);
     483
     484    *rc=((buf[0] != 0x44) && (buf[0] != 0x08));
     485
     486    memcpy(dcw, buf+20, 16);
     487    return(idx);
    487488}
    488489
Note: See TracChangeset for help on using the changeset viewer.