From 47d8e533bf33268fc8018f0a42e24b3158fbf0e5 Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Mon, 9 Apr 2018 09:21:48 +0900 Subject: [PATCH] Fix Coverity defects - 108620: Unchecked return value Change-Id: I6472033e399fa56ab2d836a3a95e1282de68e656 Signed-off-by: Dongsun Lee --- tadcore/TADCInterface/TADC_IF.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tadcore/TADCInterface/TADC_IF.cpp b/tadcore/TADCInterface/TADC_IF.cpp index 2095ef7..7784ca1 100644 --- a/tadcore/TADCInterface/TADC_IF.cpp +++ b/tadcore/TADCInterface/TADC_IF.cpp @@ -448,7 +448,10 @@ int TADC_IF_VerifyCertChain(unsigned char *rica, int ricaLen, _scoped_x509_store_ctx(pstStoreCtx, X509_STORE_CTX_free); //init - X509_STORE_CTX_init(pstStoreCtx, pstStore, pstX509, untrustedCerts); + if(!X509_STORE_CTX_init(pstStoreCtx, pstStore, pstX509, untrustedCerts)) { + DRM_TAPPS_EXCEPTION("509_STORE_CTX_init error!"); + return -1; + } //Set Flag X509_STORE_CTX_set_flags(pstStoreCtx, X509_V_FLAG_CB_ISSUER_CHECK); -- 2.7.4