Commit aaa819da authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko Committed by Aleksey

crach fix in GetOwnCert

crach fix in GetOwnCert, in debug mode in case null chain

Change-Id: I2c394a1953b8b20015c53607325b5181750bf564
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent 3d94a211
......@@ -3847,7 +3847,7 @@ void GetOwnCert(ByteArrayLL_t * chain, const char * usage)
OIC_LOG_V(WARNING, TAG, "%s not found", usage);
}
#ifndef NDEBUG
if(0 < chain->cert->len)
else if(0 < chain->cert->len)
{
OIC_LOG(DEBUG, TAG_LOG, "==== Cert being returned ===================================");
LogCert ( chain->cert->data, chain->cert->len, OIC_ENCODING_PEM, TAG_LOG );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment