OpenSC / libp11

PKCS#11 wrapper library
GNU Lesser General Public License v2.1
310 stars 189 forks source link

Avoid dereferencing a NULL pointer (in pkcs11_object_free() function). #501

Closed popovec closed 1 year ago

popovec commented 1 year ago

This condition occurs when pkcs11_get_key() calls pkcs11_object_free(key) with key = NULL (if pkcs11_object_from_object() cannot find an object). modified: src/p11_key.c