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)
src/connection_mptcp.c
src/libnetwork_mptcp.c

index e715155..e101e41 100755 (executable)
@@ -47,7 +47,8 @@ EXPORT_API int connection_mptcp_enable(connection_h connection, connection_mptcp
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
 
-       if (enable == CONNECTION_MPTCP_DISABLE) {
+       if (enable <= CONNECTION_MPTCP_DISABLE
+                       || enable > CONNECTION_MPTCP_ENABLE_SOCKOPT) {
                CONNECTION_LOG(CONNECTION_ERROR, "Use connection_mptcp_disable()");
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
index 61489b0..41648d5 100755 (executable)
@@ -86,7 +86,7 @@ int _connection_libnet_mptcp_enable(connection_mptcp_enable_e enable)
 {
        int rv = 0;
 
-       rv = net_mptcp_set_enable((int)enable);
+       rv = net_mptcp_set_enabled((int)enable);
        if (rv == NET_ERR_ACCESS_DENIED) {
                CONNECTION_LOG(CONNECTION_ERROR, "Access denied");
                return CONNECTION_ERROR_PERMISSION_DENIED;