Fix the logic when parsing c-apdu objects
authorYang Gu <yang.gu@intel.com>
Tue, 6 Apr 2010 10:06:35 +0000 (18:06 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 14 Apr 2010 17:16:08 +0000 (12:16 -0500)
src/stkutil.c

index 13c2978..3fac701 100644 (file)
@@ -852,7 +852,6 @@ static gboolean parse_dataobj_c_apdu(struct comprehension_tlv_iter *iter,
        }
        
        if (len - pos > 0) {
-               ca->lc = 0;
                ca->le = data[len - 1];
                ca->has_le = TRUE;
        }