Hello, I am working on an external driver using the last release version of opensc (0.10.1). I have been able to load it successfully, but I get a Segmentation Fault when opensc unloads the driver. It only happens on dynamic drivers.
I attach a patch solving this error. Best Regards, -- Albert Solana Berengué [EMAIL PROTECTED] C3PO, S.L. http://www.c3po.es C/Bertran, 113 - 08023 Barcelona Tel. +34 93 417 99 55 - Fax. +34 93 253 12 80
--- src/libopensc/ctx.c.orig 2006-02-23 13:50:03.000000000 +0100 +++ src/libopensc/ctx.c 2006-02-23 13:50:37.000000000 +0100 @@ -743,10 +743,10 @@ } for (i = 0; ctx->card_drivers[i]; i++) { struct sc_card_driver *drv = ctx->card_drivers[i]; - if (drv->dll) - lt_dlclose(drv->dll); if (drv->atr_map) _sc_free_atr(ctx, drv); + if (drv->dll) + lt_dlclose(drv->dll); } if (ctx->preferred_language != NULL) free(ctx->preferred_language);
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel