Hello,
On 24/01/06, Shawn Willden <[EMAIL PROTECTED]> wrote:
> In the function MSCEstablishConnection in musclecard.c, around line 488 is the
> following code:
>
> rv = (*libPL_MSCInitializePlugin) (pConnection);
>
> if (rv != MSC_SUCCESS)
> {
> //...
> TPUnloadToken(pConnection);
> //...
> }
>
> if (sharingMode != MSC_SHARE_DIRECT)
> {
> // ...
> rv = (*libPL_MSCIdentifyToken) (pConnection);
>
> If libPL_MSCInitializePlugin returns something other than MSC_SUCCESS and
> sharingMode is something other than MSC_SHARE_DIRECT, the token library will
> be unloaded by TPUnloadToken and then shortly thereafter
> libPL_MSCIdentifyToken, is a function in the just-unloaded token library,
> will be called, causing a segfault.
>
> I think the attached patch is the correct fix.
You are right. I fixed the code in subversion.
Thanks
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle