Fix wrong function name 37/187837/2
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 29 Aug 2018 01:34:17 +0000 (10:34 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 29 Aug 2018 05:49:13 +0000 (14:49 +0900)
Change-Id: I34aa6cc2574c5f7bcbb5db96772bf0734982abaf

src/connection_mptcp.c
src/libnetwork_mptcp.c

index 88546b0..7f1d776 100755 (executable)
@@ -47,7 +47,8 @@ EXPORT_API int connection_mptcp_enable(connection_h connection, connection_mptcp
                return CONNECTION_ERROR_NOT_SUPPORTED;
        }
 
-       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;