Upstream version 10.38.220.0
[platform/framework/web/crosswalk.git] / src / chromeos / cert_loader.cc
index 337c70e..dc8715b 100644 (file)
@@ -90,7 +90,8 @@ bool CertLoader::IsHardwareBacked() const {
   if (!database_)
     return false;
   crypto::ScopedPK11Slot slot(database_->GetPrivateSlot());
-  DCHECK(slot);
+  if (!slot)
+    return false;
   return PK11_IsHW(slot.get());
 }