From a7afbbdfd51c5ab37b92fd93c0655890def97284 Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Mon, 11 Jan 2021 10:55:00 +0900 Subject: [PATCH] Fix coverity(WGID=1217571) Change-Id: If3d8c257eaaafbeb1efddb5855162a42a9e33e1c Signed-off-by: Dongsun Lee --- tadcore/TADCInterface/TADC_IF.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- 2.7.4