On Sat, 20 Feb 2010 19:41:41 +0800, Andreas Jellinghaus <[email protected]> wrote:
> lets see what everyone else thinks about this, I don't know the > code well enough myself. Sorry, I missed something in my first patch, here is the new one: Index: src/ifd/ifd-epass3k.c =================================================================== --- src/ifd/ifd-epass3k.c (revision 1184) +++ src/ifd/ifd-epass3k.c (working copy) @@ -1,7 +1,7 @@ /* * OpenCT driver for ePass3000 device * - * Copyright (C) 2008, EnterSafe <[email protected]> + * Copyright (C) 2008, EnterSafe <[email protected]> */ #include "internal.h" Index: src/ifd/proto-t0.c =================================================================== --- src/ifd/proto-t0.c (revision 1184) +++ src/ifd/proto-t0.c (working copy) @@ -159,9 +159,14 @@ if (lc) { t0->state = SENDING; - if ((rc = t0_xcv(prot, sbuf, slen, rbuf, 2)) < 0) + if ((rc = t0_xcv(prot, sbuf, slen, rbuf, rlen)) < 0) return rc; + if( rc > 2 ) + { + //not 61XX but the data + goto done; + } /* Can this happen? */ if (rc != 2) return IFD_ERROR_COMM_ERROR; Every email sent to "[email protected]" will reach to all devision members, we are glad to hear from you. Thank you. Regards, Xiaoshuo _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
