Fix coverity(WGID=1217571) 68/251168/3 accepted/tizen/unified/20210112.123529 submit/tizen/20210111.063908
authorDongsun Lee <ds73.lee@samsung.com>
Mon, 11 Jan 2021 01:55:00 +0000 (10:55 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Mon, 11 Jan 2021 01:58:24 +0000 (10:58 +0900)
Change-Id: If3d8c257eaaafbeb1efddb5855162a42a9e33e1c
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
tadcore/TADCInterface/TADC_IF.cpp

index 13a1617..6760bdc 100644 (file)
@@ -326,7 +326,11 @@ int AddCertSTOREFromFile(X509_STORE *pstStore, const char *filePath)
                goto error;
        }
 
-       X509_STORE_add_cert(pstStore, pstX509);
+       if (!X509_STORE_add_cert(pstStore, pstX509)) {
+               DRM_TAPPS_EXCEPTION("X509_STORE_add_cert error!");
+               ret = -1;
+               goto error;
+       }
 
 error: