Fix RDS deployment error 21/10921/1 accepted/tizen/ivi/release accepted/tizen/ivi/stable accepted/tizen_generic accepted/tizen_ivi_panda tizen_ivi_panda tizen_ivi_release accepted/tizen/20131016.044245 accepted/tizen/20131016.154811 accepted/tizen/20131111.225649 accepted/tizen/generic/20140402.111020 accepted/tizen/ivi/20140331.202331 accepted/tizen/ivi/20140331.202409 accepted/tizen/ivi/panda/20140331.202153 accepted/tizen_ivi_stable/20131116.111647 submit/tizen/20131016.020402 submit/tizen/20140331.201515 submit/tizen_ivi/20140331.201614 submit/tizen_ivi_panda/20140331.201658 submit/tizen_ivi_release/20140331.201635 submit/tizen_ivi_stable/20131116.100908
authorcc1.yim <cc1.yim@samsung.com>
Tue, 15 Oct 2013 07:49:46 +0000 (16:49 +0900)
committercc1.yim <cc1.yim@samsung.com>
Tue, 15 Oct 2013 07:49:55 +0000 (16:49 +0900)
Change-Id: Ic9422f9f904e0247081c30f6cfcce2dda483d5cf
Signed-off-by: cc1.yim <cc1.yim@samsung.com>
vcore/src/vcore/VCore.cpp
vcore/src/vcore/XmlsecAdapter.cpp

index a3bbfee..b714773 100644 (file)
@@ -82,7 +82,7 @@ bool VCoreInit(const std::string& configFilePath,
 {
     if(threadInterface) {
         LogDebug("Already Initialized");
-        return false;
+        return true;
     }
 
     threadInterface = new DPL::DB::ThreadDatabaseSupport(
@@ -95,10 +95,10 @@ bool VCoreInit(const std::string& configFilePath,
 
     LogDebug("Initializing VCore");
     Config &globalConfig = ConfigSingleton::Instance();
-    bool returnValue = globalConfig.setXMLConfigPath(configFilePath) &&
+    globalConfig.setXMLConfigPath(configFilePath) &&
         globalConfig.setXMLSchemaPath(configSchemaPath);
 
-    return returnValue;
+    return true;
 }
 
 void VCoreDeinit()
index e41e1ed..dc89397 100644 (file)
@@ -300,7 +300,7 @@ XmlSec::Result XmlSec::validateFile(XmlSecContext *context,
 
         n = m_pList->size();
 
-        char* pList[n+1];
+        char* pList[n];
         std::list<std::string>::const_iterator itr = m_pList->begin();
         std::string tmpString;
         char* uri = NULL;
@@ -396,6 +396,10 @@ XmlSec::Result XmlSec::validateFile(XmlSecContext *context,
     }
 
 done:
+    m_pList = NULL;
+    m_noHash = false;
+    m_partialHash = false;
+
     /*   cleanup */
     if (dsigCtx != NULL) {
         xmlSecDSigCtxDestroy(dsigCtx);