OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [Muscle] BUG libmusclecard?

From: Karsten Ohme (widerstandt-online.de)
Date: Sat Apr 09 2005 - 20:18:34 CDT


Karsten Ohme wrote:
> Karsten Ohme wrote:
>
> My proposed patch does not work correctly. Some function seems to
> believe also after a MSCReleaseConnection() that the context is still
> there. At least there are connection problems, so that everything is not
> usable. I have to examine this ...

I probably found the problem. The static variable localHContxt must also
me set to 0 if the connection is released. This must also be done all
function, which use the function SCardReleaseContext(). I will try this out.

Bye, Karsten

>
>> Ludovic Rousseau wrote:
>>
>>> On Apr 6, 2005 3:36 PM, Karsten Ohme <widerstandt-online.de> wrote:
>>>
>>>> I miss a call to the function SCardReleaseContext(). In the CVS Version
>>>> of libmusclecard this function is never called. Maybe somebody would
>>>> have problems with this.
>>>>
>>>> I patched my version of libmusclecard.
>>>> File musclecard.c function MSCReleaseConnection() around line 575
>>>
>>>
>>>
>>>
>>> I greatly prefer a patch in the form of a "diff -u"
>>
>>
>>
>> Well, yes. But my sources are modified. I would have to patch against
>> the CVS version. Maybe I will manage it next time.
>>
>>>
>>> Patch applied. Thanks!
>>>
>>
>> _______________________________________________
>> Muscle mailing list
>> Musclelists.musclecard.com
>> http://lists.drizzle.com/mailman/listinfo/muscle
>
>
> _______________________________________________
> Muscle mailing list
> Musclelists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle