Changeset 97465 in vbox for trunk/src/VBox/Runtime/common/crypto/store.cpp
- Timestamp:
- Nov 8, 2022 9:46:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/store.cpp
r96407 r97465 445 445 && pCertCtx->cbEncoded > 0) 446 446 { 447 X509 *pOsslCert= NULL;447 X509 *pOsslCert = NULL; 448 448 const unsigned char *pabEncoded = (const unsigned char *)pCertCtx->pabEncoded; 449 if (d2i_X509(&pOsslCert, &pabEncoded, pCertCtx->cbEncoded) == pOsslCert )449 if (d2i_X509(&pOsslCert, &pabEncoded, pCertCtx->cbEncoded) == pOsslCert && pOsslCert != NULL) 450 450 { 451 451 if (!X509_STORE_add_cert(pOsslStore, pOsslCert)) … … 501 501 && pCertCtx->cbEncoded > 0) 502 502 { 503 X509 *pOsslCert= NULL;503 X509 *pOsslCert = NULL; 504 504 const unsigned char *pabEncoded = (const unsigned char *)pCertCtx->pabEncoded; 505 if (d2i_X509(&pOsslCert, &pabEncoded, pCertCtx->cbEncoded) == pOsslCert )505 if (d2i_X509(&pOsslCert, &pabEncoded, pCertCtx->cbEncoded) == pOsslCert && pOsslCert != NULL) 506 506 { 507 507 if (!sk_X509_push(pOsslStack, pOsslCert))
Note:
See TracChangeset
for help on using the changeset viewer.