Potential bug fixes detected by SVACE
[platform/core/security/drm-service-core-tizen.git] / tappsd / src / rights / DTapps2Rights.cpp
index 7b595f3..9b81050 100644 (file)
@@ -879,7 +879,7 @@ BOOL DTappsGetCEK(const char* szCid, T_RO* t_RO)
 
                hash_buf_enclen = TAPPS_STRLEN(row.cek_hash);
                hash_buf_declen = hash_buf_enclen / 4 * 3;
-               if (db_buf_enclen <= 0)
+               if (hash_buf_enclen <= 0)
                {
                        DRM_TAPPS_EXCEPTION("There is no CEK_hash buffer in the DB. cid = %s", szCid);
                        check_valid = TADC_LICENSE_UNKNOWN_ERROR;