From af6e4e092adc640f5537a14f2012412a47367e39 Mon Sep 17 00:00:00 2001 From: Parkhi Date: Wed, 16 Nov 2016 15:04:47 +0900 Subject: [PATCH] fixed bug for ESEnrolleeState validation check logic Change-Id: I51225c3f814ed6a651a06082a2504fb65289c58a Signed-off-by: Parkhi Reviewed-on: https://gerrit.iotivity.org/gerrit/14403 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi --- service/easy-setup/enrollee/src/easysetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/easy-setup/enrollee/src/easysetup.c b/service/easy-setup/enrollee/src/easysetup.c index 72fd82698..d79b4ef5c 100755 --- a/service/easy-setup/enrollee/src/easysetup.c +++ b/service/easy-setup/enrollee/src/easysetup.c @@ -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; -- 2.34.1