Fix: object type contains not only the class

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2496 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2005-08-18 21:14:19 +00:00
parent 6c20b6a6ad
commit edb11bd2ea
1 changed files with 1 additions and 1 deletions

View File

@ -2329,7 +2329,7 @@ sc_pkcs15init_remove_object(sc_pkcs15_card_t *p15card,
sc_path_t path;
int r = 0;
switch(obj->type)
switch(obj->type & SC_PKCS15_TYPE_CLASS_MASK)
{
case SC_PKCS15_TYPE_PUBKEY:
path = ((sc_pkcs15_pubkey_info_t *)obj->data)->path;