Fix bug : sometimes failed to get root CA 87/49187/4 accepted/tizen/mobile/20151008.134425 accepted/tizen/tv/20151008.134454 accepted/tizen/wearable/20151008.134518 submit/tizen/20151008.063000
authorKyungwook Tak <k.tak@samsung.com>
Thu, 8 Oct 2015 06:09:06 +0000 (15:09 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Thu, 8 Oct 2015 06:16:03 +0000 (15:16 +0900)
commit75255308c43eaedbdcaf29be05a8453495af6a26
tree581d05a8f8d9894ff1260c4edd624335d71658ab
parent0896f781591bd950c792557bc43e4ceb4ec6bd50
Fix bug : sometimes failed to get root CA

[Problem]      Sometimes failed to complete cert chain
[Cause]        getNameHash function return type is std::string.
               But searchByHash function get returned value and use it as .c_str() directly.
               So rvalue isn't saved properly and sometimes it goes to be empty.
[Solution]     Get returned std::string to proper variable(lvalue with std::string)
[Verification] Try 50 times to install sample tpk and no error occured.

Change-Id: Ic4b6e72c0f791546f04f7b37c6f2d1c9c40d1f8a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
vcore/vcore/CertificateCollection.cpp