Fix Coverity defects 01/175101/1 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.020446 accepted/tizen/unified/20180508.134809 submit/tizen/20180503.042957 submit/tizen/20180508.050430 submit/tizen_5.0/20181101.000004
authorDongsun Lee <ds73.lee@samsung.com>
Mon, 9 Apr 2018 00:21:48 +0000 (09:21 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Mon, 9 Apr 2018 00:21:48 +0000 (09:21 +0900)
- 108620: Unchecked return value

Change-Id: I6472033e399fa56ab2d836a3a95e1282de68e656
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
tadcore/TADCInterface/TADC_IF.cpp

index 2095ef7..7784ca1 100644 (file)
@@ -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);