[opensc-devel] [PATCH] Fix CT_Init with wrong params while using 2 tokens Aladdin eToken PRO 64

2011-09-20 Thread Iuri Diniz
On Mon, Sep 19, 2011 at 6:14 PM, Iuri Diniz wrote: > I've found that ct_card_lock is returning -7 (IFD_ERROR_LOCKED) for the > second card 'CT_init (ctn=1, pn=0)' > while is returning IFD_SUCCESS for the first one 'CT_init (ctn=0, pn=0)' > (why?) > I

Re: [opensc-devel] memory corruption while using 2 tokens Aladdin eToken PRO 64

2011-09-19 Thread Iuri Diniz
ses later a segmentation fault (using a address freed) ctapi.c:591~594 if (ct_card_lock(h, 0, IFD_LOCK_EXCLUSIVE, &ct->lock) < 0) { CT_close(ctn); return ERR_HTSI; } My question is why ct_card_lock is returning -7 LOCKED for the newly card? On Tue, Sep 13, 2011

[opensc-devel] memory corruption while using 2 tokens Aladdin eToken PRO 64

2011-09-13 Thread Iuri Diniz
kages) If someone has the key to fix this problem or can give me where I can get start in order to try to fix the problem, I will appreciate that. -- Iuri Diniz http://iuridiniz.com [Sou um agitador, não um advogado] http://blog.igdium.com [Linux on Limbo] ==14646== Memcheck, a memory error detect