On 27/07/05, Amira Solomovici <[EMAIL PROTECTED]> wrote:
> (gdb) print driverSize
> $3 = 27

This value is very strange.
Can you send me the output of "pcscd --foreground --debug" from the
start of the execution. I would like to see how the drivers are
registered.

> (gdb) print driverTracker[i].libraryPath
> $4 = 0xb2b8ff0 
> "/usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so.0.9.3"
> 
> BTW, it happened also before I installed the ccid driver.

Try the attached patch. I don't know if it correct your bug but it
should not harm :-)

Bye,

-- 
 Dr. Ludovic Rousseau
 For private mail use [EMAIL PROTECTED] and not "big brother" Google
Index: hotplug_libusb.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/hotplug_libusb.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -p -r1.36 -r1.37
--- hotplug_libusb.c    15 Jun 2005 11:57:31 -0000      1.36
+++ hotplug_libusb.c    27 Jul 2005 13:20:51 -0000      1.37
@@ -174,6 +174,8 @@ LONG HPReadBundleValues(void)
 
                                if (listCount >= driverSize)
                                {
+                                       int i;
+
                                        /* increase the array size */
                                        driverSize += DRIVER_TRACKER_SIZE_STEP;
 #ifdef DEBUG_HOTPLUG
@@ -185,8 +187,19 @@ LONG HPReadBundleValues(void)
                                        if (NULL == driverTracker)
                                        {
                                                Log1(PCSC_LOG_CRITICAL, "Not 
enough memory");
+                                               driverSize = -1;
                                                return -1;
                                        }
+
+                                       /* clean the newly allocated entries */
+                                       for 
(i=driverSize-DRIVER_TRACKER_SIZE_STEP; i<driverSize; i++)
+                                       {
+                                               driverTracker[i].manuID = 0;
+                                               driverTracker[i].productID = 0;
+                                               driverTracker[i].bundleName = 
NULL;
+                                               driverTracker[i].libraryPath = 
NULL;
+                                               driverTracker[i].readerName = 
NULL;
+                                       }
                                }
                        }
                }
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to