[strongSwan-dev] #bug pkcs11 plugin: unused result, dead code
rleanderschroeder at gmail.com
Wed Mar 28 00:07:27 CEST 2018
I'm fairly certain I've found a bug in the pkcs11 plugin of libstrongswan
and have created a fix and pull request for it:
The issue is that it's not checked whether the second call to
C_GetMechanismList is successful.
The code inside the if on line 904 (see ) will never be executed since
rv must be equal to CKR_OK (since it hasn't changed since line 894 (see
) and the other path returns).
Please let me know what you think!
!= CKR_OK is always false)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev