Changeset 577 for branches

Show
Ignore:
Timestamp:
10/31/04 15:34:00 (4 years ago)
Author:
aj
Message:

allow 4 bytes command as well.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/openct-0.6/src/ifd/ifd-egate.c

    r570 r577  
    201201     if (ifd_iso_apdu_parse(inbuffer, inlen, &iso) < 0)  
    202202         return IFD_ERROR_INVALID_ARG; 
    203      if (inlen < 5 + iso.lc || outlen < 2 + iso.le) 
     203     if (inlen >= 5 && inlen < 5 + iso.lc) 
     204         return IFD_ERROR_BUFFER_TOO_SMALL; 
     205     if (outlen < 2 + iso.le) 
    204206         return IFD_ERROR_BUFFER_TOO_SMALL; 
    205207     memset(cmdbuf,0,5);