[Prevent] Handle return value from CertificateCollection::sort.
authorJan Olszak <j.olszak@samsung.com>
Tue, 13 Nov 2012 12:12:08 +0000 (13:12 +0100)
committerJan Olszak <j.olszak@samsung.com>
Fri, 23 Nov 2012 14:20:52 +0000 (15:20 +0100)
[Issue#] Unhandled return value.
[Bug] N/A
[Cause] N/A
[Solution] Logging on error.
[Verification] Build installer

Change-Id: Ia30a0ec3522aa736dc5399f6d879fde9803509a0

src/jobs/widget_install/task_certify.cpp

index 2091407..dbfc7cd 100755 (executable)
@@ -132,7 +132,9 @@ void TaskCertify::processDistributorSignature(const SignatureData &data,
 
     CertificateCollection collection;
     collection.load(data.getCertList());
-    collection.sort();
+    Assert(collection.sort() &&
+            "Certificate collection can't sort");
+
     Assert(collection.isChain() &&
            "Certificate collection is not able to create chain. "
            "It is not possible to verify this signature.");