md: fix return code in 'CardGetContainerInfo'
This commit is contained in:
parent
808fff2246
commit
e41d94ca1a
|
@ -2214,6 +2214,11 @@ DWORD WINAPI CardGetContainerInfo(__in PCARD_DATA pCardData, __in BYTE bContaine
|
||||||
logprintf(pCardData, 1, "encode public key error %d\n", rv);
|
logprintf(pCardData, 1, "encode public key error %d\n", rv);
|
||||||
ret = SCARD_F_INTERNAL_ERROR;
|
ret = SCARD_F_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
logprintf(pCardData, 1, "public key encoded\n");
|
||||||
|
ret = SCARD_S_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
sc_pkcs15_free_pubkey(pubkey);
|
sc_pkcs15_free_pubkey(pubkey);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -2233,6 +2238,10 @@ DWORD WINAPI CardGetContainerInfo(__in PCARD_DATA pCardData, __in BYTE bContaine
|
||||||
logprintf(pCardData, 1, "encode certificate public key error %d\n", rv);
|
logprintf(pCardData, 1, "encode certificate public key error %d\n", rv);
|
||||||
ret = SCARD_F_INTERNAL_ERROR;
|
ret = SCARD_F_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
logprintf(pCardData, 1, "certificate public key encoded\n");
|
||||||
|
ret = SCARD_S_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
sc_pkcs15_free_certificate(cert);
|
sc_pkcs15_free_certificate(cert);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue