Commit 7279616f authored by Parkhi's avatar Parkhi Committed by Uze Choi

fixed bug for ESEnrolleeState validation check logic

Change-Id: I51225c3f814ed6a651a06082a2504fb65289c58a
Signed-off-by: default avatarParkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14401Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent edc42266
......@@ -202,7 +202,7 @@ ESResult ESSetState(ESEnrolleeState esState)
{
OIC_LOG(INFO, ES_ENROLLEE_TAG, "ESSetState IN");
if(esState < ES_STATE_INIT || esState > ES_STATE_FAILED_TO_REGISTER_TO_CLOUD)
if(esState < ES_STATE_INIT || esState >= ES_STATE_EOF)
{
OIC_LOG_V(ERROR, ES_ENROLLEE_TAG, "Invalid ESEnrolleeState : %d", esState);
return ES_ERROR;
......
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