fixed bug for ESEnrolleeState validation check logic
authorParkhi <h_w.park@samsung.com>
Wed, 16 Nov 2016 06:04:47 +0000 (15:04 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 17 Nov 2016 04:06:09 +0000 (04:06 +0000)
Change-Id: I51225c3f814ed6a651a06082a2504fb65289c58a
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14403
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/enrollee/src/easysetup.c

index 72fd82698e1f29abe659590672baddc5a1a5ab32..d79b4ef5cba21101291bc9d98cdc9adff754a38f 100755 (executable)
@@ -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;