Fix wrong function name
[platform/core/api/connection.git] / src / connection_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;
        }