From: Dongsun Lee Date: Mon, 11 Jan 2021 01:55:00 +0000 (+0900) Subject: Fix coverity(WGID=1217571) X-Git-Tag: accepted/tizen/unified/20210112.123529^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=inline;h=a7afbbdfd51c5ab37b92fd93c0655890def97284;p=platform%2Fcore%2Fsecurity%2Fdrm-service-core-tizen.git Fix coverity(WGID=1217571) Change-Id: If3d8c257eaaafbeb1efddb5855162a42a9e33e1c Signed-off-by: Dongsun Lee --- diff --git a/tadcore/TADCInterface/TADC_IF.cpp b/tadcore/TADCInterface/TADC_IF.cpp index 13a1617..6760bdc 100644 --- a/tadcore/TADCInterface/TADC_IF.cpp +++ b/tadcore/TADCInterface/TADC_IF.cpp @@ -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: