CACreateEndpoint is returning CA_STATUS_OK without CAInitialize.
so I add the CA status check logic before calling CACreateEndpoint().
Change-Id: Icd0177efbf60dee2930fce1fddbcb401d4e4a549
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2047
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: John Light <john.j.light@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
{
OIC_LOG(DEBUG, TAG, "CAGenerateToken");
- if(!g_isInitialized)
- {
- return CA_STATUS_NOT_INITIALIZED;
- }
return CAGenerateTokenInternal(token, tokenLength);
}
}
return CADetachResponseMessage(object, responseInfo);
-
}
CAResult_t CASendResponse(const CAEndpoint_t *object, const CAResponseInfo_t *responseInfo)
}
return CADetachResponseMessage(object, responseInfo);
-
}
CAResult_t CASelectNetwork(CATransportAdapter_t interestedNetwork)