Merge "Fix wrong function name" into tizen submit/tizen/20180903.045143
authorJaehyun Kim <jeik01.kim@samsung.com>
Mon, 3 Sep 2018 04:10:45 +0000 (04:10 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 3 Sep 2018 04:10:45 +0000 (04:10 +0000)
1  2 
src/connection_mptcp.c

@@@ -42,12 -47,8 +42,13 @@@ EXPORT_API int connection_mptcp_enable(
                return CONNECTION_ERROR_NOT_SUPPORTED;
        }
  
-       if (enable == CONNECTION_MPTCP_DISABLE) {
 +      if (!(_connection_check_handle_validity(connection))) {
 +              CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
 +              return CONNECTION_ERROR_INVALID_PARAMETER;
 +      }
 +
+       if (enable <= CONNECTION_MPTCP_DISABLE
+                       || enable > CONNECTION_MPTCP_ENABLE_SOCKOPT) {
                CONNECTION_LOG(CONNECTION_ERROR, "Use connection_mptcp_disable()");
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }