- 105718: Unchecked return value
Change-Id: Id44b5382efac170ead4db403397262e59a2daa12
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
}
X509_STORE_CTX context;
- X509_STORE_CTX_init(&context, store, cert, ustore);
+ if(!X509_STORE_CTX_init(&context, store, cert, ustore)) {
+ X509_STORE_free(store);
+ sk_X509_free(ustore);
+ return CERTSVC_FAIL;
+ }
int result = X509_verify_cert(&context);
if (result == 1 && checkCaFlag) { // check strictly