Commit 8f9914c5 authored by Chul Lee's avatar Chul Lee Committed by Randeep

Add NULL check in StartRetransmit function.

Change-Id: Ia7772c1cd574be8b001a43e7b6b482663dc2a2b4
Signed-off-by: default avatarChul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16311Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarKevin Kane <kkane@microsoft.com>
Reviewed-by: default avatarGreg Zaverucha <gregz@microsoft.com>
Reviewed-by: default avatarJoonghwan Lee <jh05.lee@samsung.com>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
(cherry picked from commit f6aa0655)
Reviewed-on: https://gerrit.iotivity.org/gerrit/16335
parent 4a9a729f
......@@ -1302,7 +1302,7 @@ static int StartRetransmit()
{
tep = (SslEndPoint_t *) u_arraylist_get(g_caSslContext->peerList, listIndex);
if (NULL == tep
|| MBEDTLS_SSL_TRANSPORT_STREAM == tep->ssl.conf->transport
|| (tep->ssl.conf && MBEDTLS_SSL_TRANSPORT_STREAM == tep->ssl.conf->transport)
|| MBEDTLS_SSL_HANDSHAKE_OVER == tep->ssl.state)
{
continue;
......@@ -1383,7 +1383,7 @@ CAResult_t CAinitSslAdapter()
mbedtls_ctr_drbg_init(&g_caSslContext->rnd);
if(0 != mbedtls_ctr_drbg_seed(&g_caSslContext->rnd, mbedtls_entropy_func,
&g_caSslContext->entropy,
&g_caSslContext->entropy,
(const unsigned char*) PERSONALIZATION_STRING, sizeof(PERSONALIZATION_STRING)))
{
OIC_LOG(ERROR, NET_SSL_TAG, "Seed initialization failed!");
......
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