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 in PKCS11 function C_SetAttributeValue

From: Ludovic Rousseau (ludovic.rousseaufree.fr)
Date: Thu Apr 28 2005 - 06:56:56 CDT


Le Thursday 28 April 2005 à 13:32:02, Roman Lewandowski a écrit:
> Hi,

Hello,

> It seems that there is a litte bug in C_SetAttributeValue function that may
> cause returning CKR_OK even if setting attribute value has actually failed.
>
> I think there should be:
> (void)CKR_ERROR(slot_EndTransaction(session->session.slotID,
> MSC_LEAVE_TOKEN));
>
> instead of:
> (void)CKR_ERROR(rv = slot_EndTransaction(session->session.slotID,
> MSC_LEAVE_TOKEN));

Could you explain how the bug could appear?
What do you think the effect of removing "rv = " is?

Regards,

--
 Dr. Ludovic Rousseau Ludovic.Rousseaufree.fr
 -- Normaliser Unix c'est comme pasteuriser le camembert, L.R. --
_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle