cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_controller.cpp
changeset 31 c0e7917aa107
parent 29 ece3df019add
--- a/cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_controller.cpp	Sat Dec 05 21:34:52 2009 +0000
+++ b/cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_controller.cpp	Sat Dec 05 21:41:51 2009 +0000
@@ -155,6 +155,12 @@
 			{
 			certstoreIndex = aParam->iCertstoreIndex;
 			iEngine->AddAppsL(aParam);
+			if (aParam->iLabel)
+				{
+				delete aParam->iDefault;
+				aParam->iDefault = NULL;
+				aParam->iDefault = aParam->iLabel->AllocL();
+				}
 			CActiveScheduler::Start();
 			aParam->iCertstoreIndex = certstoreIndex;	
 			iEngine->ListL(aParam);